Index: ui/gl/gl_gl_api_implementation.h |
diff --git a/ui/gl/gl_gl_api_implementation.h b/ui/gl/gl_gl_api_implementation.h |
index d4086006b6b51babf299646b6c7594d2fb06ccef..9594bfde917002b1dda3da24ad5eeab5b256ccab 100644 |
--- a/ui/gl/gl_gl_api_implementation.h |
+++ b/ui/gl/gl_gl_api_implementation.h |
@@ -5,10 +5,15 @@ |
#ifndef UI_GL_GL_GL_API_IMPLEMENTATION_H_ |
#define UI_GL_GL_GL_API_IMPLEMENTATION_H_ |
+#include <vector> |
+ |
#include "base/compiler_specific.h" |
#include "ui/gl/gl_bindings.h" |
#include "ui/gl/gl_export.h" |
+namespace base { |
+class CommandLine; |
+} |
namespace gpu { |
namespace gles2 { |
class GLES2Decoder; |
@@ -54,10 +59,20 @@ class RealGLApi : public GLApiBase { |
RealGLApi(); |
~RealGLApi() override; |
void Initialize(DriverGL* driver); |
+ void InitializeWithCommandLine(DriverGL* driver, |
+ base::CommandLine* command_line); |
no sievers
2015/05/01 21:55:00
So somebody has to call this in the production cod
David Yen
2015/05/01 22:34:38
In Initialize() it defaults to using the process c
no sievers
2015/05/01 22:48:35
My bad. I missed that Initialize() calls this with
David Yen
2015/05/01 22:59:35
I actually prefer the more descriptive name, but h
|
+ |
+ void glGetIntegervFn(GLenum pname, GLint* params) override; |
+ const GLubyte* glGetStringFn(GLenum name) override; |
+ const GLubyte* glGetStringiFn(GLenum name, GLuint index) override; |
private: |
void glFinishFn() override; |
void glFlushFn() override; |
+ |
+ // Filtered GL_EXTENSIONS we return to glGetString(i) calls. |
+ std::vector<std::string> filtered_exts_; |
+ std::string filtered_exts_str_; |
}; |
// Inserts a TRACE for every GL call. |