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

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: Fix gl_unittests for windows Created 5 years, 7 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
« no previous file with comments | « ui/gl/gl_api_unittest.cc ('k') | ui/gl/gl_gl_api_implementation.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..e3d591dc3d24f9e8d426d6821f2686baa0b532a5 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;
@@ -33,7 +38,7 @@ void SetGLApi(GLApi* api);
void SetGLApiToNoContext();
const GLVersionInfo* GetGLVersionInfo();
-class GLApiBase : public GLApi {
+class GL_EXPORT GLApiBase : public GLApi {
public:
// 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
@@ -49,15 +54,25 @@ class GLApiBase : public GLApi {
};
// Implemenents the GL API by calling directly into the driver.
-class RealGLApi : public GLApiBase {
+class GL_EXPORT RealGLApi : public GLApiBase {
public:
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.
« no previous file with comments | « ui/gl/gl_api_unittest.cc ('k') | ui/gl/gl_gl_api_implementation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698