Chromium Code Reviews| 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 ba66b85ddf639241beb3916df95e0cae6acc2418..06ea68564e5c6e6804811fa0495b41fdeefe1167 100644 |
| --- a/ui/gl/gl_gl_api_implementation.h |
| +++ b/ui/gl/gl_gl_api_implementation.h |
| @@ -11,6 +11,7 @@ |
| #include "base/compiler_specific.h" |
| #include "ui/gl/gl_bindings.h" |
| #include "ui/gl/gl_export.h" |
| +#include "ui/gl/gl_workarounds.h" |
| namespace base { |
| class CommandLine; |
| @@ -103,6 +104,10 @@ class GL_EXPORT RealGLApi : public GLApiBase { |
| GLsizei height) override; |
| void glClearFn(GLbitfield mask) override; |
| + void glClearColorFn(GLclampf red, |
| + GLclampf green, |
| + GLclampf blue, |
| + GLclampf alpha) override; |
| void glDrawArraysFn(GLenum mode, GLint first, GLsizei count) override; |
| void glDrawElementsFn(GLenum mode, |
| GLsizei count, |
| @@ -113,6 +118,7 @@ class GL_EXPORT RealGLApi : public GLApiBase { |
| void glDepthRangeFn(GLclampd z_near, GLclampd z_far) override; |
| void InitializeFilteredExtensions(); |
| + void setGLWorkarounds(const GLWorkarounds& workarounds); |
|
Zhenyao Mo
2017/07/12 17:00:15
You need to either name it SetGLWorkarounds() or s
jiajia.qin
2017/07/12 18:29:44
Done. Rename to set_gl_workarounds()
|
| void set_version(std::unique_ptr<GLVersionInfo> version); |
| private: |
| @@ -121,6 +127,7 @@ class GL_EXPORT RealGLApi : public GLApiBase { |
| std::vector<std::string> filtered_exts_; |
| std::string filtered_exts_str_; |
| + GLWorkarounds gl_workarounds_; |
| std::unique_ptr<GLVersionInfo> version_; |
| #if DCHECK_IS_ON() |