| 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 static EGLDisplay GetHardwareDisplay(); | 82 static EGLDisplay GetHardwareDisplay(); |
| 83 static EGLDisplay InitializeDisplay(EGLNativeDisplayType native_display); | 83 static EGLDisplay InitializeDisplay(EGLNativeDisplayType native_display); |
| 84 static EGLNativeDisplayType GetNativeDisplay(); | 84 static EGLNativeDisplayType GetNativeDisplay(); |
| 85 | 85 |
| 86 // These aren't particularly tied to surfaces, but since we already | 86 // These aren't particularly tied to surfaces, but since we already |
| 87 // have the static InitializeOneOff here, it's easiest to reuse its | 87 // have the static InitializeOneOff here, it's easiest to reuse its |
| 88 // initialization guards. | 88 // initialization guards. |
| 89 static const char* GetEGLExtensions(); | 89 static const char* GetEGLExtensions(); |
| 90 static bool HasEGLExtension(const char* name); | 90 static bool HasEGLExtension(const char* name); |
| 91 static bool IsCreateContextRobustnessSupported(); | 91 static bool IsCreateContextRobustnessSupported(); |
| 92 static bool IsCreateContextBindGeneratesResourceSupported(); |
| 93 static bool IsCreateContextWebGLCompatabilitySupported(); |
| 92 static bool IsEGLSurfacelessContextSupported(); | 94 static bool IsEGLSurfacelessContextSupported(); |
| 93 static bool IsDirectCompositionSupported(); | 95 static bool IsDirectCompositionSupported(); |
| 94 | 96 |
| 95 protected: | 97 protected: |
| 96 ~GLSurfaceEGL() override; | 98 ~GLSurfaceEGL() override; |
| 97 | 99 |
| 98 EGLConfig config_ = nullptr; | 100 EGLConfig config_ = nullptr; |
| 99 GLSurface::Format format_ = GLSurface::SURFACE_DEFAULT; | 101 GLSurface::Format format_ = GLSurface::SURFACE_DEFAULT; |
| 100 | 102 |
| 101 private: | 103 private: |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 ~SurfacelessEGL() override; | 238 ~SurfacelessEGL() override; |
| 237 | 239 |
| 238 private: | 240 private: |
| 239 gfx::Size size_; | 241 gfx::Size size_; |
| 240 DISALLOW_COPY_AND_ASSIGN(SurfacelessEGL); | 242 DISALLOW_COPY_AND_ASSIGN(SurfacelessEGL); |
| 241 }; | 243 }; |
| 242 | 244 |
| 243 } // namespace gl | 245 } // namespace gl |
| 244 | 246 |
| 245 #endif // UI_GL_GL_SURFACE_EGL_H_ | 247 #endif // UI_GL_GL_SURFACE_EGL_H_ |
| OLD | NEW |