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

Unified Diff: ui/gl/gl_egl_api_implementation.h

Issue 1151093006: Added disabling EGL extensions support with --disable-extensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Setup global egl driver since we are using global functions to initialize the extension string Created 5 years, 6 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_egl_api_implementation.h
diff --git a/ui/gl/gl_egl_api_implementation.h b/ui/gl/gl_egl_api_implementation.h
index a2ff28d09121e8c108270854c91ecd123c9c13b7..46f5f842961de97fc5fe7ab6c897fd3653823e69 100644
--- a/ui/gl/gl_egl_api_implementation.h
+++ b/ui/gl/gl_egl_api_implementation.h
@@ -5,10 +5,15 @@
#ifndef UI_GL_GL_EGL_API_IMPLEMENTATION_H_
#define UI_GL_GL_EGL_API_IMPLEMENTATION_H_
+#include <vector>
+
#include "base/compiler_specific.h"
#include "gl_bindings.h"
#include "ui/gl/gl_export.h"
+namespace base {
+class CommandLine;
+}
namespace gfx {
class GLContext;
@@ -39,6 +44,16 @@ class GL_EXPORT RealEGLApi : public EGLApiBase {
RealEGLApi();
~RealEGLApi() override;
void Initialize(DriverEGL* driver);
+ void InitializeWithCommandLine(DriverEGL* driver,
+ base::CommandLine* command_line);
+ void InitializeFilteredExtensions();
+
+ const char* eglQueryStringFn(EGLDisplay dpy, EGLint name) override;
+
+ private:
+ // Filtered EGL_EXTENSIONS we return to eglQueryStringFn() calls.
+ std::vector<std::string> disabled_exts_;
+ std::string filtered_exts_;
};

Powered by Google App Engine
This is Rietveld 408576698