| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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_GL_OZONE_EGL_CAST_H_ | 5 #ifndef UI_OZONE_PLATFORM_CAST_GL_OZONE_EGL_CAST_H_ |
| 6 #define UI_OZONE_PLATFORM_CAST_GL_OZONE_EGL_CAST_H_ | 6 #define UI_OZONE_PLATFORM_CAST_GL_OZONE_EGL_CAST_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 explicit GLOzoneEglCast( | 27 explicit GLOzoneEglCast( |
| 28 std::unique_ptr<chromecast::CastEglPlatform> egl_platform); | 28 std::unique_ptr<chromecast::CastEglPlatform> egl_platform); |
| 29 ~GLOzoneEglCast() override; | 29 ~GLOzoneEglCast() override; |
| 30 | 30 |
| 31 // GLOzoneEGL implementation: | 31 // GLOzoneEGL implementation: |
| 32 scoped_refptr<gl::GLSurface> CreateViewGLSurface( | 32 scoped_refptr<gl::GLSurface> CreateViewGLSurface( |
| 33 gfx::AcceleratedWidget widget) override; | 33 gfx::AcceleratedWidget widget) override; |
| 34 scoped_refptr<gl::GLSurface> CreateOffscreenGLSurface( | 34 scoped_refptr<gl::GLSurface> CreateOffscreenGLSurface( |
| 35 const gfx::Size& size) override; | 35 const gfx::Size& size) override; |
| 36 intptr_t GetNativeDisplay() override; | 36 intptr_t GetNativeDisplay() override; |
| 37 bool LoadGLES2Bindings() override; | 37 bool LoadGLES2Bindings(gl::GLImplementation implementation) override; |
| 38 | 38 |
| 39 intptr_t GetNativeWindow(); | 39 intptr_t GetNativeWindow(); |
| 40 bool ResizeDisplay(gfx::Size viewport_size); | 40 bool ResizeDisplay(gfx::Size viewport_size); |
| 41 void ChildDestroyed(); | 41 void ChildDestroyed(); |
| 42 void TerminateDisplay(); | 42 void TerminateDisplay(); |
| 43 void ShutdownHardware(); | 43 void ShutdownHardware(); |
| 44 | 44 |
| 45 // API for keeping track of overlays per frame for logging purposes | 45 // API for keeping track of overlays per frame for logging purposes |
| 46 void OnSwapBuffers(); | 46 void OnSwapBuffers(); |
| 47 void OnOverlayScheduled(const gfx::Rect& display_bounds); | 47 void OnOverlayScheduled(const gfx::Rect& display_bounds); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 66 gfx::Rect overlay_bounds_; | 66 gfx::Rect overlay_bounds_; |
| 67 int previous_frame_overlay_count_ = 0; | 67 int previous_frame_overlay_count_ = 0; |
| 68 gfx::Rect previous_frame_overlay_bounds_; | 68 gfx::Rect previous_frame_overlay_bounds_; |
| 69 | 69 |
| 70 DISALLOW_COPY_AND_ASSIGN(GLOzoneEglCast); | 70 DISALLOW_COPY_AND_ASSIGN(GLOzoneEglCast); |
| 71 }; | 71 }; |
| 72 | 72 |
| 73 } // namespace ui | 73 } // namespace ui |
| 74 | 74 |
| 75 #endif // UI_OZONE_PLATFORM_CAST_GL_OZONE_EGL_CAST_H_ | 75 #endif // UI_OZONE_PLATFORM_CAST_GL_OZONE_EGL_CAST_H_ |
| OLD | NEW |