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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 VSyncProvider* GetVSyncProvider() override; | 75 VSyncProvider* GetVSyncProvider() override; |
76 | 76 |
77 // Create a NativeViewGLSurfaceEGL with an externally provided VSyncProvider. | 77 // Create a NativeViewGLSurfaceEGL with an externally provided VSyncProvider. |
78 // Takes ownership of the VSyncProvider. | 78 // Takes ownership of the VSyncProvider. |
79 virtual bool Initialize(scoped_ptr<VSyncProvider> sync_provider); | 79 virtual bool Initialize(scoped_ptr<VSyncProvider> sync_provider); |
80 | 80 |
81 protected: | 81 protected: |
82 ~NativeViewGLSurfaceEGL() override; | 82 ~NativeViewGLSurfaceEGL() override; |
83 | 83 |
84 EGLNativeWindowType window_; | 84 EGLNativeWindowType window_; |
| 85 EGLConfig config_; |
85 | 86 |
86 private: | 87 private: |
87 EGLSurface surface_; | 88 EGLSurface surface_; |
88 bool supports_post_sub_buffer_; | 89 bool supports_post_sub_buffer_; |
89 EGLConfig config_; | |
90 gfx::Size size_; | 90 gfx::Size size_; |
91 | 91 |
92 scoped_ptr<VSyncProvider> vsync_provider_; | 92 scoped_ptr<VSyncProvider> vsync_provider_; |
93 | 93 |
94 DISALLOW_COPY_AND_ASSIGN(NativeViewGLSurfaceEGL); | 94 DISALLOW_COPY_AND_ASSIGN(NativeViewGLSurfaceEGL); |
95 }; | 95 }; |
96 | 96 |
97 // Encapsulates a pbuffer EGL surface. | 97 // Encapsulates a pbuffer EGL surface. |
98 class GL_EXPORT PbufferGLSurfaceEGL : public GLSurfaceEGL { | 98 class GL_EXPORT PbufferGLSurfaceEGL : public GLSurfaceEGL { |
99 public: | 99 public: |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 ~SurfacelessEGL() override; | 143 ~SurfacelessEGL() override; |
144 | 144 |
145 private: | 145 private: |
146 gfx::Size size_; | 146 gfx::Size size_; |
147 DISALLOW_COPY_AND_ASSIGN(SurfacelessEGL); | 147 DISALLOW_COPY_AND_ASSIGN(SurfacelessEGL); |
148 }; | 148 }; |
149 | 149 |
150 } // namespace gfx | 150 } // namespace gfx |
151 | 151 |
152 #endif // UI_GL_GL_SURFACE_EGL_H_ | 152 #endif // UI_GL_GL_SURFACE_EGL_H_ |
OLD | NEW |