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_ozone.h" | 5 #include "content/browser/compositor/software_output_device_ozone.h" |
| 6 #include "third_party/skia/include/core/SkBitmapDevice.h" |
6 #include "third_party/skia/include/core/SkDevice.h" | 7 #include "third_party/skia/include/core/SkDevice.h" |
7 #include "ui/compositor/compositor.h" | 8 #include "ui/compositor/compositor.h" |
8 #include "ui/gfx/ozone/surface_factory_ozone.h" | 9 #include "ui/gfx/ozone/surface_factory_ozone.h" |
9 #include "ui/gfx/skia_util.h" | 10 #include "ui/gfx/skia_util.h" |
10 #include "ui/gfx/vsync_provider.h" | 11 #include "ui/gfx/vsync_provider.h" |
11 | 12 |
12 namespace content { | 13 namespace content { |
13 | 14 |
14 SoftwareOutputDeviceOzone::SoftwareOutputDeviceOzone(ui::Compositor* compositor) | 15 SoftwareOutputDeviceOzone::SoftwareOutputDeviceOzone(ui::Compositor* compositor) |
15 : compositor_(compositor), realized_widget_(gfx::kNullAcceleratedWidget) { | 16 : compositor_(compositor), realized_widget_(gfx::kNullAcceleratedWidget) { |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 | 64 |
64 if (damage_rect_.IsEmpty()) | 65 if (damage_rect_.IsEmpty()) |
65 return; | 66 return; |
66 | 67 |
67 bool scheduled = gfx::SurfaceFactoryOzone::GetInstance()->SchedulePageFlip( | 68 bool scheduled = gfx::SurfaceFactoryOzone::GetInstance()->SchedulePageFlip( |
68 compositor_->widget()); | 69 compositor_->widget()); |
69 DCHECK(scheduled) << "Failed to schedule pageflip"; | 70 DCHECK(scheduled) << "Failed to schedule pageflip"; |
70 } | 71 } |
71 | 72 |
72 } // namespace content | 73 } // namespace content |
OLD | NEW |