| 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 15 matching lines...) Expand all Loading... |
| 26 SurfaceFactoryCast(); | 26 SurfaceFactoryCast(); |
| 27 explicit SurfaceFactoryCast( | 27 explicit SurfaceFactoryCast( |
| 28 std::unique_ptr<chromecast::CastEglPlatform> egl_platform); | 28 std::unique_ptr<chromecast::CastEglPlatform> egl_platform); |
| 29 ~SurfaceFactoryCast() override; | 29 ~SurfaceFactoryCast() override; |
| 30 | 30 |
| 31 // SurfaceFactoryOzone implementation: | 31 // SurfaceFactoryOzone implementation: |
| 32 std::vector<gl::GLImplementation> GetAllowedGLImplementations() override; | 32 std::vector<gl::GLImplementation> GetAllowedGLImplementations() override; |
| 33 GLOzone* GetGLOzone(gl::GLImplementation implementation) override; | 33 GLOzone* GetGLOzone(gl::GLImplementation implementation) override; |
| 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<gfx::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 std::unique_ptr<GLOzone> osmesa_implementation_; |
| 45 | 45 |
| 46 DISALLOW_COPY_AND_ASSIGN(SurfaceFactoryCast); | 46 DISALLOW_COPY_AND_ASSIGN(SurfaceFactoryCast); |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 } // namespace ui | 49 } // namespace ui |
| 50 | 50 |
| 51 #endif // UI_OZONE_PLATFORM_CAST_SURFACE_FACTORY_CAST_H_ | 51 #endif // UI_OZONE_PLATFORM_CAST_SURFACE_FACTORY_CAST_H_ |
| OLD | NEW |