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 11 matching lines...) Expand all Loading... |
22 | 22 |
23 // Get default EGL display for GLSurfaceEGL (differs by platform). | 23 // Get default EGL display for GLSurfaceEGL (differs by platform). |
24 EGLNativeDisplayType GetPlatformDefaultEGLNativeDisplay(); | 24 EGLNativeDisplayType GetPlatformDefaultEGLNativeDisplay(); |
25 | 25 |
26 // Interface for EGL surface. | 26 // Interface for EGL surface. |
27 class GL_EXPORT GLSurfaceEGL : public GLSurface { | 27 class GL_EXPORT GLSurfaceEGL : public GLSurface { |
28 public: | 28 public: |
29 GLSurfaceEGL(); | 29 GLSurfaceEGL(); |
30 | 30 |
31 // Implement GLSurface. | 31 // Implement GLSurface. |
| 32 void DestroyAndTerminateDisplay() override; |
32 EGLDisplay GetDisplay() override; | 33 EGLDisplay GetDisplay() override; |
33 | 34 |
34 static bool InitializeOneOff(); | 35 static bool InitializeOneOff(); |
35 static EGLDisplay GetHardwareDisplay(); | 36 static EGLDisplay GetHardwareDisplay(); |
36 static EGLNativeDisplayType GetNativeDisplay(); | 37 static EGLNativeDisplayType GetNativeDisplay(); |
37 | 38 |
38 // These aren't particularly tied to surfaces, but since we already | 39 // These aren't particularly tied to surfaces, but since we already |
39 // have the static InitializeOneOff here, it's easiest to reuse its | 40 // have the static InitializeOneOff here, it's easiest to reuse its |
40 // initialization guards. | 41 // initialization guards. |
41 static const char* GetEGLExtensions(); | 42 static const char* GetEGLExtensions(); |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 ~SurfacelessEGL() override; | 143 ~SurfacelessEGL() override; |
143 | 144 |
144 private: | 145 private: |
145 gfx::Size size_; | 146 gfx::Size size_; |
146 DISALLOW_COPY_AND_ASSIGN(SurfacelessEGL); | 147 DISALLOW_COPY_AND_ASSIGN(SurfacelessEGL); |
147 }; | 148 }; |
148 | 149 |
149 } // namespace gfx | 150 } // namespace gfx |
150 | 151 |
151 #endif // UI_GL_GL_SURFACE_EGL_H_ | 152 #endif // UI_GL_GL_SURFACE_EGL_H_ |
OLD | NEW |