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_WGL_API_IMPLEMENTATION_H_ | 5 #ifndef UI_GL_GL_WGL_API_IMPLEMENTATION_H_ |
6 #define UI_GL_GL_WGL_API_IMPLEMENTATION_H_ | 6 #define UI_GL_GL_WGL_API_IMPLEMENTATION_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 | 48 |
49 const char* wglGetExtensionsStringARBFn(HDC hDC) override; | 49 const char* wglGetExtensionsStringARBFn(HDC hDC) override; |
50 const char* wglGetExtensionsStringEXTFn() override; | 50 const char* wglGetExtensionsStringEXTFn() override; |
51 private: | 51 private: |
52 | 52 |
53 std::vector<std::string> disabled_exts_; | 53 std::vector<std::string> disabled_exts_; |
54 std::string filtered_arb_exts_; | 54 std::string filtered_arb_exts_; |
55 std::string filtered_ext_exts_; | 55 std::string filtered_ext_exts_; |
56 }; | 56 }; |
57 | 57 |
| 58 // Logs debug information for every WGL call. |
| 59 class GL_EXPORT DebugWGLApi : public WGLApi { |
| 60 public: |
| 61 DebugWGLApi(WGLApi* wgl_api); |
| 62 ~DebugWGLApi() override; |
| 63 |
| 64 // Include the auto-generated part of this class. We split this because |
| 65 // it means we can easily edit the non-auto generated parts right here in |
| 66 // this file instead of having to edit some template or the code generator. |
| 67 #include "gl_bindings_api_autogen_wgl.h" |
| 68 |
| 69 private: |
| 70 WGLApi* wgl_api_; |
| 71 }; |
| 72 |
58 // Inserts a TRACE for every WGL call. | 73 // Inserts a TRACE for every WGL call. |
59 class GL_EXPORT TraceWGLApi : public WGLApi { | 74 class GL_EXPORT TraceWGLApi : public WGLApi { |
60 public: | 75 public: |
61 TraceWGLApi(WGLApi* wgl_api) : wgl_api_(wgl_api) { } | 76 TraceWGLApi(WGLApi* wgl_api) : wgl_api_(wgl_api) { } |
62 ~TraceWGLApi() override; | 77 ~TraceWGLApi() override; |
63 | 78 |
64 // Include the auto-generated part of this class. We split this because | 79 // Include the auto-generated part of this class. We split this because |
65 // it means we can easily edit the non-auto generated parts right here in | 80 // it means we can easily edit the non-auto generated parts right here in |
66 // this file instead of having to edit some template or the code generator. | 81 // this file instead of having to edit some template or the code generator. |
67 #include "gl_bindings_api_autogen_wgl.h" | 82 #include "gl_bindings_api_autogen_wgl.h" |
68 | 83 |
69 private: | 84 private: |
70 WGLApi* wgl_api_; | 85 WGLApi* wgl_api_; |
71 }; | 86 }; |
72 | 87 |
73 } // namespace gl | 88 } // namespace gl |
74 | 89 |
75 #endif // UI_GL_GL_WGL_API_IMPLEMENTATION_H_ | 90 #endif // UI_GL_GL_WGL_API_IMPLEMENTATION_H_ |
76 | 91 |
77 | 92 |
78 | 93 |
OLD | NEW |