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

Unified Diff: ui/gl/gl_gl_api_implementation.h

Issue 1110923003: Added switch to disable specified GL extensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added gl_api_unittest under gfx_unittests Created 5 years, 8 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_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);
+
+ 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.

Powered by Google App Engine
This is Rietveld 408576698