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

Unified Diff: ui/gl/gl_context.cc

Issue 2934733002: Workaround for Intel 6xxx clear to 0/1 bug (Closed)
Patch Set: rebased, rename setGLWorkarounds to set_gl_workarounds Created 3 years, 5 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.h ('k') | ui/gl/gl_gl_api_implementation.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_context.cc
diff --git a/ui/gl/gl_context.cc b/ui/gl/gl_context.cc
index 0f3b3561390189453f9c746bfb31a7a43f564546..80622b2f6e19c17aa63d1be2ccf4aa30a36db60a 100644
--- a/ui/gl/gl_context.cc
+++ b/ui/gl/gl_context.cc
@@ -61,6 +61,7 @@ GLContext::~GLContext() {
GLApi* GLContext::CreateGLApi(DriverGL* driver) {
real_gl_api_ = new RealGLApi;
real_gl_api_->Initialize(driver);
+ real_gl_api_->set_gl_workarounds(gl_workarounds_);
return real_gl_api_;
}
@@ -210,6 +211,14 @@ void GLContext::SetCurrent(GLSurface* surface) {
}
}
+void GLContext::SetGLWorkarounds(const GLWorkarounds& workarounds) {
+ DCHECK(IsCurrent(nullptr));
+ gl_workarounds_ = workarounds;
+ if (real_gl_api_) {
+ real_gl_api_->set_gl_workarounds(gl_workarounds_);
+ }
+}
+
GLStateRestorer* GLContext::GetGLStateRestorer() {
return state_restorer_.get();
}
« no previous file with comments | « ui/gl/gl_context.h ('k') | ui/gl/gl_gl_api_implementation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698