| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 static bool HasGLXExtension(const char* name); | 32 static bool HasGLXExtension(const char* name); |
| 33 static bool IsCreateContextSupported(); | 33 static bool IsCreateContextSupported(); |
| 34 static bool IsCreateContextRobustnessSupported(); | 34 static bool IsCreateContextRobustnessSupported(); |
| 35 static bool IsTextureFromPixmapSupported(); | 35 static bool IsTextureFromPixmapSupported(); |
| 36 static bool IsOMLSyncControlSupported(); | 36 static bool IsOMLSyncControlSupported(); |
| 37 | 37 |
| 38 void* GetDisplay() override; | 38 void* GetDisplay() override; |
| 39 | 39 |
| 40 // Get the FB config that the surface was created with or NULL if it is not | 40 // Get the FB config that the surface was created with or NULL if it is not |
| 41 // a GLX drawable. | 41 // a GLX drawable. |
| 42 virtual void* GetConfig() = 0; | 42 virtual void* GetConfig() override = 0; |
| 43 | 43 |
| 44 protected: | 44 protected: |
| 45 ~GLSurfaceGLX() override; | 45 ~GLSurfaceGLX() override; |
| 46 | 46 |
| 47 private: | 47 private: |
| 48 DISALLOW_COPY_AND_ASSIGN(GLSurfaceGLX); | 48 DISALLOW_COPY_AND_ASSIGN(GLSurfaceGLX); |
| 49 }; | 49 }; |
| 50 | 50 |
| 51 // A surface used to render to a view. | 51 // A surface used to render to a view. |
| 52 class GL_EXPORT NativeViewGLSurfaceGLX : public GLSurfaceGLX, | 52 class GL_EXPORT NativeViewGLSurfaceGLX : public GLSurfaceGLX, |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 gfx::Size size_; | 113 gfx::Size size_; |
| 114 void* config_; | 114 void* config_; |
| 115 XID pbuffer_; | 115 XID pbuffer_; |
| 116 | 116 |
| 117 DISALLOW_COPY_AND_ASSIGN(PbufferGLSurfaceGLX); | 117 DISALLOW_COPY_AND_ASSIGN(PbufferGLSurfaceGLX); |
| 118 }; | 118 }; |
| 119 | 119 |
| 120 } // namespace gfx | 120 } // namespace gfx |
| 121 | 121 |
| 122 #endif // UI_GL_GL_SURFACE_GLX_H_ | 122 #endif // UI_GL_GL_SURFACE_GLX_H_ |
| OLD | NEW |