| 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/SkDevice.h" | |
| 7 #include "ui/compositor/compositor.h" | 6 #include "ui/compositor/compositor.h" |
| 8 #include "ui/gfx/skia_util.h" | 7 #include "ui/gfx/skia_util.h" |
| 9 #include "ui/gfx/vsync_provider.h" | 8 #include "ui/gfx/vsync_provider.h" |
| 10 #include "ui/ozone/public/ozone_platform.h" | 9 #include "ui/ozone/public/ozone_platform.h" |
| 11 #include "ui/ozone/public/surface_factory_ozone.h" | 10 #include "ui/ozone/public/surface_factory_ozone.h" |
| 12 #include "ui/ozone/public/surface_ozone_canvas.h" | 11 #include "ui/ozone/public/surface_ozone_canvas.h" |
| 13 | 12 |
| 14 namespace content { | 13 namespace content { |
| 15 | 14 |
| 16 SoftwareOutputDeviceOzone::SoftwareOutputDeviceOzone(ui::Compositor* compositor) | 15 SoftwareOutputDeviceOzone::SoftwareOutputDeviceOzone(ui::Compositor* compositor) |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 return SoftwareOutputDevice::BeginPaint(damage_rect); | 49 return SoftwareOutputDevice::BeginPaint(damage_rect); |
| 51 } | 50 } |
| 52 | 51 |
| 53 void SoftwareOutputDeviceOzone::EndPaint() { | 52 void SoftwareOutputDeviceOzone::EndPaint() { |
| 54 SoftwareOutputDevice::EndPaint(); | 53 SoftwareOutputDevice::EndPaint(); |
| 55 | 54 |
| 56 surface_ozone_->PresentCanvas(damage_rect_); | 55 surface_ozone_->PresentCanvas(damage_rect_); |
| 57 } | 56 } |
| 58 | 57 |
| 59 } // namespace content | 58 } // namespace content |
| OLD | NEW |