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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 12 matching lines...) Expand all Loading... |
23 | 23 |
24 // SurfaceFactoryOzone implementation for OzonePlatformCast. | 24 // SurfaceFactoryOzone implementation for OzonePlatformCast. |
25 class SurfaceFactoryCast : public SurfaceFactoryOzone { | 25 class SurfaceFactoryCast : public SurfaceFactoryOzone { |
26 public: | 26 public: |
27 SurfaceFactoryCast(); | 27 SurfaceFactoryCast(); |
28 explicit SurfaceFactoryCast( | 28 explicit SurfaceFactoryCast( |
29 std::unique_ptr<chromecast::CastEglPlatform> egl_platform); | 29 std::unique_ptr<chromecast::CastEglPlatform> egl_platform); |
30 ~SurfaceFactoryCast() override; | 30 ~SurfaceFactoryCast() override; |
31 | 31 |
32 // SurfaceFactoryOzone implementation: | 32 // SurfaceFactoryOzone implementation: |
33 bool UseNewSurfaceAPI() override; | |
34 scoped_refptr<gl::GLSurface> CreateViewGLSurface( | 33 scoped_refptr<gl::GLSurface> CreateViewGLSurface( |
35 gl::GLImplementation implementation, | 34 gl::GLImplementation implementation, |
36 gfx::AcceleratedWidget widget) override; | 35 gfx::AcceleratedWidget widget) override; |
37 scoped_refptr<gl::GLSurface> CreateOffscreenGLSurface( | 36 scoped_refptr<gl::GLSurface> CreateOffscreenGLSurface( |
38 gl::GLImplementation implementation, | 37 gl::GLImplementation implementation, |
39 const gfx::Size& size) override; | 38 const gfx::Size& size) override; |
40 std::unique_ptr<SurfaceOzoneCanvas> CreateCanvasForWidget( | 39 std::unique_ptr<SurfaceOzoneCanvas> CreateCanvasForWidget( |
41 gfx::AcceleratedWidget widget) override; | 40 gfx::AcceleratedWidget widget) override; |
42 intptr_t GetNativeDisplay() override; | 41 intptr_t GetNativeDisplay() override; |
43 scoped_refptr<NativePixmap> CreateNativePixmap( | 42 scoped_refptr<NativePixmap> CreateNativePixmap( |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 gfx::Rect overlay_bounds_; | 78 gfx::Rect overlay_bounds_; |
80 int previous_frame_overlay_count_; | 79 int previous_frame_overlay_count_; |
81 gfx::Rect previous_frame_overlay_bounds_; | 80 gfx::Rect previous_frame_overlay_bounds_; |
82 | 81 |
83 DISALLOW_COPY_AND_ASSIGN(SurfaceFactoryCast); | 82 DISALLOW_COPY_AND_ASSIGN(SurfaceFactoryCast); |
84 }; | 83 }; |
85 | 84 |
86 } // namespace ui | 85 } // namespace ui |
87 | 86 |
88 #endif // UI_OZONE_PLATFORM_CAST_SURFACE_FACTORY_CAST_H_ | 87 #endif // UI_OZONE_PLATFORM_CAST_SURFACE_FACTORY_CAST_H_ |
OLD | NEW |