OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef UI_GL_GLX_API_IMPLEMENTATION_H_ |
| 6 #define UI_GL_GLX_API_IMPLEMENTATION_H_ |
| 7 |
| 8 #include "base/compiler_specific.h" |
| 9 #include "gl_bindings.h" |
| 10 |
| 11 namespace gfx { |
| 12 |
| 13 class GLContext; |
| 14 |
| 15 void InitializeGLBindingsGLX(); |
| 16 void InitializeGLExtensionBindingsGLX(GLContext* context); |
| 17 void InitializeDebugGLBindingsGLX(); |
| 18 void ClearGLBindingsGLX(); |
| 19 |
| 20 class RealGLXApi : public GLXApi { |
| 21 public: |
| 22 RealGLXApi(); |
| 23 void Initialize(DriverGLX* driver); |
| 24 |
| 25 // Include the auto-generated part of this class. We split this because |
| 26 // it means we can easily edit the non-auto generated parts right here in |
| 27 // this file instead of having to edit some template or the code generator. |
| 28 #include "gl_bindings_api_autogen_glx.h" |
| 29 |
| 30 private: |
| 31 DriverGLX* driver_; |
| 32 }; |
| 33 |
| 34 } // namespace gfx |
| 35 |
| 36 #endif // UI_GL_GLX_API_IMPLEMENTATION_H_ |
| 37 |
| 38 |
| 39 |
OLD | NEW |