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

Unified Diff: ui/gl/gl_gl_api_implementation.h

Issue 2934733002: Workaround for Intel 6xxx clear to 0/1 bug (Closed)
Patch Set: move gl_workarounds_ to a member of RealGLApi Created 3 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
« no previous file with comments | « ui/gl/gl_context.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 ba66b85ddf639241beb3916df95e0cae6acc2418..002db564e5d9a23d2d82aeafbd2dbb8c88889aae 100644
--- a/ui/gl/gl_gl_api_implementation.h
+++ b/ui/gl/gl_gl_api_implementation.h
@@ -19,6 +19,7 @@ class CommandLine;
namespace gl {
struct GLVersionInfo;
+struct GLWorkarounds;
GL_EXPORT void InitializeStaticGLBindingsGL();
GL_EXPORT void ClearBindingsGL();
@@ -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(GLWorkarounds* 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_;
Zhenyao Mo 2017/07/11 18:24:48 Let's make it GLWorkarounds gl_workarounds_ instea
jiajia.qin 2017/07/12 05:01:00 Ack. To make it GLWorkarounds gl_workarounds_ inst
std::unique_ptr<GLVersionInfo> version_;
#if DCHECK_IS_ON()
« no previous file with comments | « ui/gl/gl_context.cc ('k') | ui/gl/gl_gl_api_implementation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698