| 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_GLX_H_ | 5 #ifndef UI_GL_GL_SURFACE_GLX_H_ |
| 6 #define UI_GL_GL_SURFACE_GLX_H_ | 6 #define UI_GL_GL_SURFACE_GLX_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 static bool InitializeOneOff(); | 29 static bool InitializeOneOff(); |
| 30 | 30 |
| 31 // These aren't particularly tied to surfaces, but since we already | 31 // These aren't particularly tied to surfaces, but since we already |
| 32 // have the static InitializeOneOff here, it's easiest to reuse its | 32 // have the static InitializeOneOff here, it's easiest to reuse its |
| 33 // initialization guards. | 33 // initialization guards. |
| 34 static const char* GetGLXExtensions(); | 34 static const char* GetGLXExtensions(); |
| 35 static bool HasGLXExtension(const char* name); | 35 static bool HasGLXExtension(const char* name); |
| 36 static bool IsCreateContextSupported(); | 36 static bool IsCreateContextSupported(); |
| 37 static bool IsCreateContextRobustnessSupported(); | 37 static bool IsCreateContextRobustnessSupported(); |
| 38 static bool IsCreateContextProfileSupported(); |
| 39 static bool IsCreateContextES2ProfileSupported(); |
| 38 static bool IsTextureFromPixmapSupported(); | 40 static bool IsTextureFromPixmapSupported(); |
| 39 static bool IsOMLSyncControlSupported(); | 41 static bool IsOMLSyncControlSupported(); |
| 40 | 42 |
| 41 void* GetDisplay() override; | 43 void* GetDisplay() override; |
| 42 | 44 |
| 43 // Get the FB config that the surface was created with or NULL if it is not | 45 // Get the FB config that the surface was created with or NULL if it is not |
| 44 // a GLX drawable. | 46 // a GLX drawable. |
| 45 void* GetConfig() override = 0; | 47 void* GetConfig() override = 0; |
| 46 | 48 |
| 47 protected: | 49 protected: |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 | 127 |
| 126 // GLXDrawable for the window. | 128 // GLXDrawable for the window. |
| 127 GLXWindow glx_window_; | 129 GLXWindow glx_window_; |
| 128 | 130 |
| 129 DISALLOW_COPY_AND_ASSIGN(UnmappedNativeViewGLSurfaceGLX); | 131 DISALLOW_COPY_AND_ASSIGN(UnmappedNativeViewGLSurfaceGLX); |
| 130 }; | 132 }; |
| 131 | 133 |
| 132 } // namespace gl | 134 } // namespace gl |
| 133 | 135 |
| 134 #endif // UI_GL_GL_SURFACE_GLX_H_ | 136 #endif // UI_GL_GL_SURFACE_GLX_H_ |
| OLD | NEW |