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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 gfx::SwapResult SwapBuffers() override; | 98 gfx::SwapResult SwapBuffers() override; |
99 gfx::Size GetSize() override; | 99 gfx::Size GetSize() override; |
100 EGLSurface GetHandle() override; | 100 EGLSurface GetHandle() override; |
101 bool SupportsPostSubBuffer() override; | 101 bool SupportsPostSubBuffer() override; |
102 gfx::SwapResult PostSubBuffer(int x, int y, int width, int height) override; | 102 gfx::SwapResult PostSubBuffer(int x, int y, int width, int height) override; |
103 bool SupportsCommitOverlayPlanes() override; | 103 bool SupportsCommitOverlayPlanes() override; |
104 gfx::SwapResult CommitOverlayPlanes() override; | 104 gfx::SwapResult CommitOverlayPlanes() override; |
105 gfx::VSyncProvider* GetVSyncProvider() override; | 105 gfx::VSyncProvider* GetVSyncProvider() override; |
106 bool ScheduleOverlayPlane(int z_order, | 106 bool ScheduleOverlayPlane(int z_order, |
107 gfx::OverlayTransform transform, | 107 gfx::OverlayTransform transform, |
108 gl::GLImage* image, | 108 GLImage* image, |
109 const gfx::Rect& bounds_rect, | 109 const gfx::Rect& bounds_rect, |
110 const gfx::RectF& crop_rect) override; | 110 const gfx::RectF& crop_rect) override; |
111 bool FlipsVertically() const override; | 111 bool FlipsVertically() const override; |
112 bool BuffersFlipped() const override; | 112 bool BuffersFlipped() const override; |
113 | 113 |
114 // Create a NativeViewGLSurfaceEGL with an externally provided | 114 // Create a NativeViewGLSurfaceEGL with an externally provided |
115 // gfx::VSyncProvider. | 115 // gfx::VSyncProvider. Takes ownership of the gfx::VSyncProvider. |
116 // Takes ownership of the gfx::VSyncProvider. | |
117 virtual bool Initialize(std::unique_ptr<gfx::VSyncProvider> sync_provider); | 116 virtual bool Initialize(std::unique_ptr<gfx::VSyncProvider> sync_provider); |
118 | 117 |
119 // Takes care of the platform dependant bits, of any, for creating the window. | 118 // Takes care of the platform dependant bits, of any, for creating the window. |
120 virtual bool InitializeNativeWindow(); | 119 virtual bool InitializeNativeWindow(); |
121 | 120 |
122 protected: | 121 protected: |
123 ~NativeViewGLSurfaceEGL() override; | 122 ~NativeViewGLSurfaceEGL() override; |
124 | 123 |
125 EGLNativeWindowType window_; | 124 EGLNativeWindowType window_; |
126 gfx::Size size_; | 125 gfx::Size size_; |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 ~SurfacelessEGL() override; | 207 ~SurfacelessEGL() override; |
209 | 208 |
210 private: | 209 private: |
211 gfx::Size size_; | 210 gfx::Size size_; |
212 DISALLOW_COPY_AND_ASSIGN(SurfacelessEGL); | 211 DISALLOW_COPY_AND_ASSIGN(SurfacelessEGL); |
213 }; | 212 }; |
214 | 213 |
215 } // namespace gl | 214 } // namespace gl |
216 | 215 |
217 #endif // UI_GL_GL_SURFACE_EGL_H_ | 216 #endif // UI_GL_GL_SURFACE_EGL_H_ |
OLD | NEW |