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 23 matching lines...) Expand all Loading... |
34 GLSurfaceEGL(); | 34 GLSurfaceEGL(); |
35 | 35 |
36 // Implement GLSurface. | 36 // Implement GLSurface. |
37 virtual EGLDisplay GetDisplay() OVERRIDE; | 37 virtual EGLDisplay GetDisplay() OVERRIDE; |
38 | 38 |
39 static bool InitializeOneOff(); | 39 static bool InitializeOneOff(); |
40 static EGLDisplay GetHardwareDisplay(); | 40 static EGLDisplay GetHardwareDisplay(); |
41 static EGLDisplay GetSoftwareDisplay(); | 41 static EGLDisplay GetSoftwareDisplay(); |
42 static EGLNativeDisplayType GetNativeDisplay(); | 42 static EGLNativeDisplayType GetNativeDisplay(); |
43 | 43 |
| 44 // These aren't particularly tied to surfaces, but since we already |
| 45 // have the static InitializeOneOff here, it's easiest to reuse its |
| 46 // initialization guards. |
| 47 static const char* GetEGLExtensions(); |
| 48 static bool HasEGLExtension(const char* name); |
| 49 static bool IsCreateContextRobustnessSupported(); |
| 50 |
44 protected: | 51 protected: |
45 virtual ~GLSurfaceEGL(); | 52 virtual ~GLSurfaceEGL(); |
46 | 53 |
47 bool software_; | 54 bool software_; |
48 | 55 |
49 private: | 56 private: |
50 DISALLOW_COPY_AND_ASSIGN(GLSurfaceEGL); | 57 DISALLOW_COPY_AND_ASSIGN(GLSurfaceEGL); |
51 }; | 58 }; |
52 | 59 |
53 // Encapsulates an EGL surface bound to a view. | 60 // Encapsulates an EGL surface bound to a view. |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 private: | 108 private: |
102 gfx::Size size_; | 109 gfx::Size size_; |
103 EGLSurface surface_; | 110 EGLSurface surface_; |
104 | 111 |
105 DISALLOW_COPY_AND_ASSIGN(PbufferGLSurfaceEGL); | 112 DISALLOW_COPY_AND_ASSIGN(PbufferGLSurfaceEGL); |
106 }; | 113 }; |
107 | 114 |
108 } // namespace gfx | 115 } // namespace gfx |
109 | 116 |
110 #endif // UI_GL_GL_SURFACE_EGL_H_ | 117 #endif // UI_GL_GL_SURFACE_EGL_H_ |
OLD | NEW |