Index: ui/gl/gl_osmesa_api_implementation.h |
diff --git a/ui/gl/gl_osmesa_api_implementation.h b/ui/gl/gl_osmesa_api_implementation.h |
index 6d7681c8fbe9c09e4941d501989f267bf743980e..9d00b126680b1d08f9818e8c9d4f0f38aac782ea 100644 |
--- a/ui/gl/gl_osmesa_api_implementation.h |
+++ b/ui/gl/gl_osmesa_api_implementation.h |
@@ -40,6 +40,21 @@ class GL_EXPORT RealOSMESAApi : public OSMESAApiBase { |
void Initialize(DriverOSMESA* driver); |
}; |
+// Inserts a TRACE for every OSMESA call. |
+class GL_EXPORT TraceOSMESAApi : public OSMESAApi { |
+ public: |
+ TraceOSMESAApi(OSMESAApi* osmesa_api) : osmesa_api_(osmesa_api) { } |
+ virtual ~TraceOSMESAApi(); |
+ |
+ // 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_osmesa.h" |
+ |
+ private: |
+ OSMESAApi* osmesa_api_; |
+}; |
+ |
} // namespace gfx |
#endif // UI_GL_OSMESA_API_IMPLEMENTATION_H_ |