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 #import <Cocoa/Cocoa.h> | 7 #import <Cocoa/Cocoa.h> |
| 8 #include <stddef.h> |
| 9 #include <stdint.h> |
8 | 10 |
9 #include "base/mac/foundation_util.h" | 11 #include "base/mac/foundation_util.h" |
10 #include "third_party/skia/include/core/SkCanvas.h" | 12 #include "third_party/skia/include/core/SkCanvas.h" |
11 #include "ui/accelerated_widget_mac/accelerated_widget_mac.h" | 13 #include "ui/accelerated_widget_mac/accelerated_widget_mac.h" |
12 #include "ui/compositor/compositor.h" | 14 #include "ui/compositor/compositor.h" |
13 #include "ui/gfx/skia_util.h" | 15 #include "ui/gfx/skia_util.h" |
14 | 16 |
15 namespace content { | 17 namespace content { |
16 | 18 |
17 SoftwareOutputDeviceMac::SoftwareOutputDeviceMac(ui::Compositor* compositor) | 19 SoftwareOutputDeviceMac::SoftwareOutputDeviceMac(ui::Compositor* compositor) |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 gfx::VSyncProvider* SoftwareOutputDeviceMac::GetVSyncProvider() { | 163 gfx::VSyncProvider* SoftwareOutputDeviceMac::GetVSyncProvider() { |
162 return this; | 164 return this; |
163 } | 165 } |
164 | 166 |
165 void SoftwareOutputDeviceMac::GetVSyncParameters( | 167 void SoftwareOutputDeviceMac::GetVSyncParameters( |
166 const gfx::VSyncProvider::UpdateVSyncCallback& callback) { | 168 const gfx::VSyncProvider::UpdateVSyncCallback& callback) { |
167 update_vsync_callback_ = callback; | 169 update_vsync_callback_ = callback; |
168 } | 170 } |
169 | 171 |
170 } // namespace content | 172 } // namespace content |
OLD | NEW |