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_; |
}; |