Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: content/browser/renderer_host/browser_compositor_view_mac.mm

Issue 2877483003: Implements core logic for Pixel Canvas (Closed)
Patch Set: Sync with ToT Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/renderer_host/browser_compositor_view_mac.h" 5 #include "content/browser/renderer_host/browser_compositor_view_mac.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <utility> 9 #include <utility>
10 10
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 97
98 DISALLOW_COPY_AND_ASSIGN(RecyclableCompositorMac); 98 DISALLOW_COPY_AND_ASSIGN(RecyclableCompositorMac);
99 }; 99 };
100 100
101 RecyclableCompositorMac::RecyclableCompositorMac() 101 RecyclableCompositorMac::RecyclableCompositorMac()
102 : accelerated_widget_mac_(new ui::AcceleratedWidgetMac()), 102 : accelerated_widget_mac_(new ui::AcceleratedWidgetMac()),
103 compositor_(content::GetContextFactoryPrivate()->AllocateFrameSinkId(), 103 compositor_(content::GetContextFactoryPrivate()->AllocateFrameSinkId(),
104 content::GetContextFactory(), 104 content::GetContextFactory(),
105 content::GetContextFactoryPrivate(), 105 content::GetContextFactoryPrivate(),
106 ui::WindowResizeHelperMac::Get()->task_runner(), 106 ui::WindowResizeHelperMac::Get()->task_runner(),
107 false /* enable_surface_synchronization */) { 107 false /* enable_surface_synchronization */,
108 false /* enable_pixel_canvas */) {
108 compositor_.SetAcceleratedWidget( 109 compositor_.SetAcceleratedWidget(
109 accelerated_widget_mac_->accelerated_widget()); 110 accelerated_widget_mac_->accelerated_widget());
110 Suspend(); 111 Suspend();
111 compositor_.AddObserver(this); 112 compositor_.AddObserver(this);
112 } 113 }
113 114
114 RecyclableCompositorMac::~RecyclableCompositorMac() { 115 RecyclableCompositorMac::~RecyclableCompositorMac() {
115 compositor_.RemoveObserver(this); 116 compositor_.RemoveObserver(this);
116 } 117 }
117 118
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 void BrowserCompositorMac::OnBeginFrame() { 444 void BrowserCompositorMac::OnBeginFrame() {
444 client_->BrowserCompositorMacOnBeginFrame(); 445 client_->BrowserCompositorMacOnBeginFrame();
445 } 446 }
446 447
447 bool BrowserCompositorMac::IsAutoResizeEnabled() const { 448 bool BrowserCompositorMac::IsAutoResizeEnabled() const {
448 NOTREACHED(); 449 NOTREACHED();
449 return false; 450 return false;
450 } 451 }
451 452
452 } // namespace content 453 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/compositor/software_output_device_ozone_unittest.cc ('k') | ui/aura/window_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698