| 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 27 matching lines...) Expand all Loading... |
| 38 bool supports_angle_opengl, | 38 bool supports_angle_opengl, |
| 39 const base::CommandLine* command_line, | 39 const base::CommandLine* command_line, |
| 40 std::vector<DisplayType>* init_displays); | 40 std::vector<DisplayType>* init_displays); |
| 41 | 41 |
| 42 // Interface for EGL surface. | 42 // Interface for EGL surface. |
| 43 class GL_EXPORT GLSurfaceEGL : public GLSurface { | 43 class GL_EXPORT GLSurfaceEGL : public GLSurface { |
| 44 public: | 44 public: |
| 45 GLSurfaceEGL(); | 45 GLSurfaceEGL(); |
| 46 | 46 |
| 47 // Implement GLSurface. | 47 // Implement GLSurface. |
| 48 void DestroyAndTerminateDisplay() override; | |
| 49 EGLDisplay GetDisplay() override; | 48 EGLDisplay GetDisplay() override; |
| 50 | 49 |
| 51 static bool InitializeOneOff(); | 50 static bool InitializeOneOff(); |
| 52 static EGLDisplay GetHardwareDisplay(); | 51 static EGLDisplay GetHardwareDisplay(); |
| 53 static EGLDisplay InitializeDisplay(); | 52 static EGLDisplay InitializeDisplay(); |
| 54 static EGLNativeDisplayType GetNativeDisplay(); | 53 static EGLNativeDisplayType GetNativeDisplay(); |
| 55 | 54 |
| 56 // These aren't particularly tied to surfaces, but since we already | 55 // These aren't particularly tied to surfaces, but since we already |
| 57 // have the static InitializeOneOff here, it's easiest to reuse its | 56 // have the static InitializeOneOff here, it's easiest to reuse its |
| 58 // initialization guards. | 57 // initialization guards. |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 ~SurfacelessEGL() override; | 168 ~SurfacelessEGL() override; |
| 170 | 169 |
| 171 private: | 170 private: |
| 172 gfx::Size size_; | 171 gfx::Size size_; |
| 173 DISALLOW_COPY_AND_ASSIGN(SurfacelessEGL); | 172 DISALLOW_COPY_AND_ASSIGN(SurfacelessEGL); |
| 174 }; | 173 }; |
| 175 | 174 |
| 176 } // namespace gfx | 175 } // namespace gfx |
| 177 | 176 |
| 178 #endif // UI_GL_GL_SURFACE_EGL_H_ | 177 #endif // UI_GL_GL_SURFACE_EGL_H_ |
| OLD | NEW |