OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |