| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_GL_GL_SURFACE_EGL_H_ | 5 #ifndef UI_GL_GL_SURFACE_EGL_H_ |
| 6 #define UI_GL_GL_SURFACE_EGL_H_ | 6 #define UI_GL_GL_SURFACE_EGL_H_ |
| 7 | 7 |
| 8 #if defined(OS_WIN) | 8 #if defined(OS_WIN) |
| 9 #include <windows.h> | 9 #include <windows.h> |
| 10 #endif | 10 #endif |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 gfx::SwapResult PostSubBuffer(int x, int y, int width, int height) override; | 95 gfx::SwapResult PostSubBuffer(int x, int y, int width, int height) override; |
| 96 bool SupportsCommitOverlayPlanes() override; | 96 bool SupportsCommitOverlayPlanes() override; |
| 97 gfx::SwapResult CommitOverlayPlanes() override; | 97 gfx::SwapResult CommitOverlayPlanes() override; |
| 98 VSyncProvider* GetVSyncProvider() override; | 98 VSyncProvider* GetVSyncProvider() override; |
| 99 bool ScheduleOverlayPlane(int z_order, | 99 bool ScheduleOverlayPlane(int z_order, |
| 100 OverlayTransform transform, | 100 OverlayTransform transform, |
| 101 gl::GLImage* image, | 101 gl::GLImage* image, |
| 102 const Rect& bounds_rect, | 102 const Rect& bounds_rect, |
| 103 const RectF& crop_rect) override; | 103 const RectF& crop_rect) override; |
| 104 bool FlipsVertically() const override; | 104 bool FlipsVertically() const override; |
| 105 bool BuffersFlipped() const override; |
| 105 | 106 |
| 106 // Create a NativeViewGLSurfaceEGL with an externally provided VSyncProvider. | 107 // Create a NativeViewGLSurfaceEGL with an externally provided VSyncProvider. |
| 107 // Takes ownership of the VSyncProvider. | 108 // Takes ownership of the VSyncProvider. |
| 108 virtual bool Initialize(scoped_ptr<VSyncProvider> sync_provider); | 109 virtual bool Initialize(scoped_ptr<VSyncProvider> sync_provider); |
| 109 | 110 |
| 110 // Takes care of the platform dependant bits, of any, for creating the window. | 111 // Takes care of the platform dependant bits, of any, for creating the window. |
| 111 virtual bool InitializeNativeWindow(); | 112 virtual bool InitializeNativeWindow(); |
| 112 | 113 |
| 113 protected: | 114 protected: |
| 114 ~NativeViewGLSurfaceEGL() override; | 115 ~NativeViewGLSurfaceEGL() override; |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 ~SurfacelessEGL() override; | 202 ~SurfacelessEGL() override; |
| 202 | 203 |
| 203 private: | 204 private: |
| 204 gfx::Size size_; | 205 gfx::Size size_; |
| 205 DISALLOW_COPY_AND_ASSIGN(SurfacelessEGL); | 206 DISALLOW_COPY_AND_ASSIGN(SurfacelessEGL); |
| 206 }; | 207 }; |
| 207 | 208 |
| 208 } // namespace gfx | 209 } // namespace gfx |
| 209 | 210 |
| 210 #endif // UI_GL_GL_SURFACE_EGL_H_ | 211 #endif // UI_GL_GL_SURFACE_EGL_H_ |
| OLD | NEW |