Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(754)

Unified Diff: ui/gl/gl_wgl_api_implementation.h

Issue 2629633003: Refactor GL bindings so there is no global GLApi or DriverGL. (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/gl/gl_wgl_api_implementation.h
diff --git a/ui/gl/gl_wgl_api_implementation.h b/ui/gl/gl_wgl_api_implementation.h
index 9366c636206d45d24c3beb70391de3cbd6ffe3fc..cc3628c15df104cec095587b0910ac4e715f6f29 100644
--- a/ui/gl/gl_wgl_api_implementation.h
+++ b/ui/gl/gl_wgl_api_implementation.h
@@ -55,6 +55,21 @@ class GL_EXPORT RealWGLApi : public WGLApiBase {
std::string filtered_ext_exts_;
};
+// Logs debug information for every WGL call.
+class GL_EXPORT DebugWGLApi : public WGLApi {
+ public:
+ DebugWGLApi(WGLApi* wgl_api);
+ ~DebugWGLApi() override;
+
+ // Include the auto-generated part of this class. We split this because
+ // it means we can easily edit the non-auto generated parts right here in
+ // this file instead of having to edit some template or the code generator.
+ #include "gl_bindings_api_autogen_wgl.h"
+
+ private:
+ WGLApi* wgl_api_;
+};
+
// Inserts a TRACE for every WGL call.
class GL_EXPORT TraceWGLApi : public WGLApi {
public:

Powered by Google App Engine
This is Rietveld 408576698