| 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 #ifndef UI_OZONE_PLATFORM_CAST_SURFACE_FACTORY_CAST_H_ | 5 #ifndef UI_OZONE_PLATFORM_CAST_SURFACE_FACTORY_CAST_H_ |
| 6 #define UI_OZONE_PLATFORM_CAST_SURFACE_FACTORY_CAST_H_ | 6 #define UI_OZONE_PLATFORM_CAST_SURFACE_FACTORY_CAST_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 std::unique_ptr<SurfaceOzoneCanvas> CreateCanvasForWidget( | 34 std::unique_ptr<SurfaceOzoneCanvas> CreateCanvasForWidget( |
| 35 gfx::AcceleratedWidget widget) override; | 35 gfx::AcceleratedWidget widget) override; |
| 36 scoped_refptr<NativePixmap> CreateNativePixmap( | 36 scoped_refptr<NativePixmap> CreateNativePixmap( |
| 37 gfx::AcceleratedWidget widget, | 37 gfx::AcceleratedWidget widget, |
| 38 gfx::Size size, | 38 gfx::Size size, |
| 39 gfx::BufferFormat format, | 39 gfx::BufferFormat format, |
| 40 gfx::BufferUsage usage) override; | 40 gfx::BufferUsage usage) override; |
| 41 | 41 |
| 42 private: | 42 private: |
| 43 std::unique_ptr<GLOzoneEglCast> egl_implementation_; | 43 std::unique_ptr<GLOzoneEglCast> egl_implementation_; |
| 44 std::unique_ptr<GLOzone> osmesa_implementation_; |
| 44 | 45 |
| 45 DISALLOW_COPY_AND_ASSIGN(SurfaceFactoryCast); | 46 DISALLOW_COPY_AND_ASSIGN(SurfaceFactoryCast); |
| 46 }; | 47 }; |
| 47 | 48 |
| 48 } // namespace ui | 49 } // namespace ui |
| 49 | 50 |
| 50 #endif // UI_OZONE_PLATFORM_CAST_SURFACE_FACTORY_CAST_H_ | 51 #endif // UI_OZONE_PLATFORM_CAST_SURFACE_FACTORY_CAST_H_ |
| OLD | NEW |