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