OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "cc/output/software_output_device.h" | 5 #include "cc/output/software_output_device.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "cc/output/software_frame_data.h" | 8 #include "cc/output/software_frame_data.h" |
9 #include "third_party/skia/include/core/SkCanvas.h" | 9 #include "third_party/skia/include/core/SkCanvas.h" |
10 #include "ui/gfx/skia_util.h" | |
11 #include "ui/gfx/vsync_provider.h" | 10 #include "ui/gfx/vsync_provider.h" |
12 | 11 |
13 namespace cc { | 12 namespace cc { |
14 | 13 |
15 SoftwareOutputDevice::SoftwareOutputDevice() : scale_factor_(1.f) { | 14 SoftwareOutputDevice::SoftwareOutputDevice() : scale_factor_(1.f) { |
16 } | 15 } |
17 | 16 |
18 SoftwareOutputDevice::~SoftwareOutputDevice() {} | 17 SoftwareOutputDevice::~SoftwareOutputDevice() {} |
19 | 18 |
20 void SoftwareOutputDevice::Resize(const gfx::Size& viewport_pixel_size, | 19 void SoftwareOutputDevice::Resize(const gfx::Size& viewport_pixel_size, |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 | 56 |
58 void SoftwareOutputDevice::ReclaimSoftwareFrame(unsigned id) { | 57 void SoftwareOutputDevice::ReclaimSoftwareFrame(unsigned id) { |
59 NOTIMPLEMENTED(); | 58 NOTIMPLEMENTED(); |
60 } | 59 } |
61 | 60 |
62 gfx::VSyncProvider* SoftwareOutputDevice::GetVSyncProvider() { | 61 gfx::VSyncProvider* SoftwareOutputDevice::GetVSyncProvider() { |
63 return vsync_provider_.get(); | 62 return vsync_provider_.get(); |
64 } | 63 } |
65 | 64 |
66 } // namespace cc | 65 } // namespace cc |
OLD | NEW |