| 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_GL_API_IMPLEMENTATION_H_ | 5 #ifndef UI_GL_GL_GL_API_IMPLEMENTATION_H_ |
| 6 #define UI_GL_GL_GL_API_IMPLEMENTATION_H_ | 6 #define UI_GL_GL_GL_API_IMPLEMENTATION_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "ui/gl/gl_bindings.h" | 9 #include "ui/gl/gl_bindings.h" |
| 10 #include "ui/gl/gl_export.h" | 10 #include "ui/gl/gl_export.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 public: | 37 public: |
| 38 // Include the auto-generated part of this class. We split this because | 38 // Include the auto-generated part of this class. We split this because |
| 39 // it means we can easily edit the non-auto generated parts right here in | 39 // it means we can easily edit the non-auto generated parts right here in |
| 40 // this file instead of having to edit some template or the code generator. | 40 // this file instead of having to edit some template or the code generator. |
| 41 #include "gl_bindings_api_autogen_gl.h" | 41 #include "gl_bindings_api_autogen_gl.h" |
| 42 | 42 |
| 43 protected: | 43 protected: |
| 44 GLApiBase(); | 44 GLApiBase(); |
| 45 ~GLApiBase() override; | 45 ~GLApiBase() override; |
| 46 void InitializeBase(DriverGL* driver); | 46 void InitializeBase(DriverGL* driver); |
| 47 void SignalFlush(); | |
| 48 | 47 |
| 49 DriverGL* driver_; | 48 DriverGL* driver_; |
| 50 }; | 49 }; |
| 51 | 50 |
| 52 // Implemenents the GL API by calling directly into the driver. | 51 // Implemenents the GL API by calling directly into the driver. |
| 53 class RealGLApi : public GLApiBase { | 52 class RealGLApi : public GLApiBase { |
| 54 public: | 53 public: |
| 55 RealGLApi(); | 54 RealGLApi(); |
| 56 ~RealGLApi() override; | 55 ~RealGLApi() override; |
| 57 void Initialize(DriverGL* driver); | 56 void Initialize(DriverGL* driver); |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 ScopedSetGLToRealGLApi(); | 122 ScopedSetGLToRealGLApi(); |
| 124 ~ScopedSetGLToRealGLApi(); | 123 ~ScopedSetGLToRealGLApi(); |
| 125 | 124 |
| 126 private: | 125 private: |
| 127 GLApi* old_gl_api_; | 126 GLApi* old_gl_api_; |
| 128 }; | 127 }; |
| 129 | 128 |
| 130 } // namespace gfx | 129 } // namespace gfx |
| 131 | 130 |
| 132 #endif // UI_GL_GL_GL_API_IMPLEMENTATION_H_ | 131 #endif // UI_GL_GL_GL_API_IMPLEMENTATION_H_ |
| OLD | NEW |