| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "ui/ozone/platform/cast/surface_factory_cast.h" | 5 #include "ui/ozone/platform/cast/surface_factory_cast.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
| 11 #include "chromecast/public/cast_egl_platform.h" | 11 #include "chromecast/public/cast_egl_platform.h" |
| 12 #include "third_party/skia/include/core/SkSurface.h" | 12 #include "third_party/skia/include/core/SkSurface.h" |
| 13 #include "ui/gfx/geometry/rect.h" | 13 #include "ui/gfx/geometry/rect.h" |
| 14 #include "ui/gfx/native_pixmap.h" |
| 14 #include "ui/gfx/vsync_provider.h" | 15 #include "ui/gfx/vsync_provider.h" |
| 15 #include "ui/ozone/public/native_pixmap.h" | |
| 16 #include "ui/ozone/public/surface_ozone_canvas.h" | 16 #include "ui/ozone/public/surface_ozone_canvas.h" |
| 17 | 17 |
| 18 namespace ui { | 18 namespace ui { |
| 19 | 19 |
| 20 namespace { | 20 namespace { |
| 21 | 21 |
| 22 class DummySurface : public SurfaceOzoneCanvas { | 22 class DummySurface : public SurfaceOzoneCanvas { |
| 23 public: | 23 public: |
| 24 DummySurface() {} | 24 DummySurface() {} |
| 25 ~DummySurface() override {} | 25 ~DummySurface() override {} |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 | 124 |
| 125 scoped_refptr<NativePixmap> SurfaceFactoryCast::CreateNativePixmap( | 125 scoped_refptr<NativePixmap> SurfaceFactoryCast::CreateNativePixmap( |
| 126 gfx::AcceleratedWidget widget, | 126 gfx::AcceleratedWidget widget, |
| 127 gfx::Size size, | 127 gfx::Size size, |
| 128 gfx::BufferFormat format, | 128 gfx::BufferFormat format, |
| 129 gfx::BufferUsage usage) { | 129 gfx::BufferUsage usage) { |
| 130 return make_scoped_refptr(new CastPixmap(egl_implementation_.get())); | 130 return make_scoped_refptr(new CastPixmap(egl_implementation_.get())); |
| 131 } | 131 } |
| 132 | 132 |
| 133 } // namespace ui | 133 } // namespace ui |
| OLD | NEW |