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/compositor/software_output_device_mac.h" | 5 #include "content/browser/compositor/software_output_device_mac.h" |
6 | 6 |
7 #include "base/mac/foundation_util.h" | 7 #include "base/mac/foundation_util.h" |
| 8 #include "base/trace_event/trace_event.h" |
8 #include "third_party/skia/include/core/SkCanvas.h" | 9 #include "third_party/skia/include/core/SkCanvas.h" |
9 #include "ui/accelerated_widget_mac/accelerated_widget_mac.h" | 10 #include "ui/accelerated_widget_mac/accelerated_widget_mac.h" |
10 #include "ui/compositor/compositor.h" | 11 #include "ui/compositor/compositor.h" |
11 #include "ui/gfx/mac/io_surface.h" | 12 #include "ui/gfx/mac/io_surface.h" |
12 #include "ui/gfx/skia_util.h" | 13 #include "ui/gfx/skia_util.h" |
13 | 14 |
14 namespace content { | 15 namespace content { |
15 | 16 |
16 SoftwareOutputDeviceMac::SoftwareOutputDeviceMac(ui::Compositor* compositor) | 17 SoftwareOutputDeviceMac::SoftwareOutputDeviceMac(ui::Compositor* compositor) |
17 : compositor_(compositor), scale_factor_(1), current_index_(0) {} | 18 : compositor_(compositor), scale_factor_(1), current_index_(0) {} |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 gfx::VSyncProvider* SoftwareOutputDeviceMac::GetVSyncProvider() { | 158 gfx::VSyncProvider* SoftwareOutputDeviceMac::GetVSyncProvider() { |
158 return this; | 159 return this; |
159 } | 160 } |
160 | 161 |
161 void SoftwareOutputDeviceMac::GetVSyncParameters( | 162 void SoftwareOutputDeviceMac::GetVSyncParameters( |
162 const gfx::VSyncProvider::UpdateVSyncCallback& callback) { | 163 const gfx::VSyncProvider::UpdateVSyncCallback& callback) { |
163 update_vsync_callback_ = callback; | 164 update_vsync_callback_ = callback; |
164 } | 165 } |
165 | 166 |
166 } // namespace content | 167 } // namespace content |
OLD | NEW |