| 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 26 matching lines...) Expand all Loading... |
| 37 gl::GLImplementation implementation, | 37 gl::GLImplementation implementation, |
| 38 const gfx::Size& size) override; | 38 const gfx::Size& size) override; |
| 39 std::unique_ptr<SurfaceOzoneCanvas> CreateCanvasForWidget( | 39 std::unique_ptr<SurfaceOzoneCanvas> CreateCanvasForWidget( |
| 40 gfx::AcceleratedWidget widget) override; | 40 gfx::AcceleratedWidget widget) override; |
| 41 intptr_t GetNativeDisplay() override; | 41 intptr_t GetNativeDisplay() override; |
| 42 scoped_refptr<NativePixmap> CreateNativePixmap( | 42 scoped_refptr<NativePixmap> CreateNativePixmap( |
| 43 gfx::AcceleratedWidget widget, | 43 gfx::AcceleratedWidget widget, |
| 44 gfx::Size size, | 44 gfx::Size size, |
| 45 gfx::BufferFormat format, | 45 gfx::BufferFormat format, |
| 46 gfx::BufferUsage usage) override; | 46 gfx::BufferUsage usage) override; |
| 47 bool LoadEGLGLES2Bindings( | 47 bool LoadEGLGLES2Bindings() override; |
| 48 AddGLLibraryCallback add_gl_library, | |
| 49 SetGLGetProcAddressProcCallback set_gl_get_proc_address) override; | |
| 50 | 48 |
| 51 intptr_t GetNativeWindow(); | 49 intptr_t GetNativeWindow(); |
| 52 bool ResizeDisplay(gfx::Size viewport_size); | 50 bool ResizeDisplay(gfx::Size viewport_size); |
| 53 void ChildDestroyed(); | 51 void ChildDestroyed(); |
| 54 void TerminateDisplay(); | 52 void TerminateDisplay(); |
| 55 void ShutdownHardware(); | 53 void ShutdownHardware(); |
| 56 | 54 |
| 57 // API for keeping track of overlays per frame for logging purposes | 55 // API for keeping track of overlays per frame for logging purposes |
| 58 void OnSwapBuffers(); | 56 void OnSwapBuffers(); |
| 59 void OnOverlayScheduled(const gfx::Rect& display_bounds); | 57 void OnOverlayScheduled(const gfx::Rect& display_bounds); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 78 gfx::Rect overlay_bounds_; | 76 gfx::Rect overlay_bounds_; |
| 79 int previous_frame_overlay_count_; | 77 int previous_frame_overlay_count_; |
| 80 gfx::Rect previous_frame_overlay_bounds_; | 78 gfx::Rect previous_frame_overlay_bounds_; |
| 81 | 79 |
| 82 DISALLOW_COPY_AND_ASSIGN(SurfaceFactoryCast); | 80 DISALLOW_COPY_AND_ASSIGN(SurfaceFactoryCast); |
| 83 }; | 81 }; |
| 84 | 82 |
| 85 } // namespace ui | 83 } // namespace ui |
| 86 | 84 |
| 87 #endif // UI_OZONE_PLATFORM_CAST_SURFACE_FACTORY_CAST_H_ | 85 #endif // UI_OZONE_PLATFORM_CAST_SURFACE_FACTORY_CAST_H_ |
| OLD | NEW |