| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 | 65 |
| 66 // These aren't particularly tied to surfaces, but since we already | 66 // These aren't particularly tied to surfaces, but since we already |
| 67 // have the static InitializeOneOff here, it's easiest to reuse its | 67 // have the static InitializeOneOff here, it's easiest to reuse its |
| 68 // initialization guards. | 68 // initialization guards. |
| 69 static const char* GetEGLExtensions(); | 69 static const char* GetEGLExtensions(); |
| 70 static bool HasEGLExtension(const char* name); | 70 static bool HasEGLExtension(const char* name); |
| 71 static bool IsCreateContextRobustnessSupported(); | 71 static bool IsCreateContextRobustnessSupported(); |
| 72 static bool IsCreateContextBindGeneratesResourceSupported(); | 72 static bool IsCreateContextBindGeneratesResourceSupported(); |
| 73 static bool IsCreateContextWebGLCompatabilitySupported(); | 73 static bool IsCreateContextWebGLCompatabilitySupported(); |
| 74 static bool IsEGLSurfacelessContextSupported(); | 74 static bool IsEGLSurfacelessContextSupported(); |
| 75 static bool IsEGLContextPrioritySupported(); |
| 75 static bool IsDirectCompositionSupported(); | 76 static bool IsDirectCompositionSupported(); |
| 76 | 77 |
| 77 protected: | 78 protected: |
| 78 ~GLSurfaceEGL() override; | 79 ~GLSurfaceEGL() override; |
| 79 | 80 |
| 80 EGLConfig config_ = nullptr; | 81 EGLConfig config_ = nullptr; |
| 81 GLSurfaceFormat format_; | 82 GLSurfaceFormat format_; |
| 82 | 83 |
| 83 private: | 84 private: |
| 84 DISALLOW_COPY_AND_ASSIGN(GLSurfaceEGL); | 85 DISALLOW_COPY_AND_ASSIGN(GLSurfaceEGL); |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 ~SurfacelessEGL() override; | 198 ~SurfacelessEGL() override; |
| 198 | 199 |
| 199 private: | 200 private: |
| 200 gfx::Size size_; | 201 gfx::Size size_; |
| 201 DISALLOW_COPY_AND_ASSIGN(SurfacelessEGL); | 202 DISALLOW_COPY_AND_ASSIGN(SurfacelessEGL); |
| 202 }; | 203 }; |
| 203 | 204 |
| 204 } // namespace gl | 205 } // namespace gl |
| 205 | 206 |
| 206 #endif // UI_GL_GL_SURFACE_EGL_H_ | 207 #endif // UI_GL_GL_SURFACE_EGL_H_ |
| OLD | NEW |