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

Unified Diff: ui/gl/gl_context.cc

Issue 2934733002: Workaround for Intel 6xxx clear to 0/1 bug (Closed)
Patch Set: fix try-bot error 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.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..5fbe7f1412585fd9ad071b543cc433ae5dacc2b3 100644
--- a/ui/gl/gl_context.cc
+++ b/ui/gl/gl_context.cc
@@ -210,6 +210,14 @@ void GLContext::SetCurrent(GLSurface* surface) {
}
}
+GLWorkarounds GLContext::GetGLWorkarounds() {
+ return gl_workarounds_;
+}
+
+void GLContext::SetGLWorkarounds(const GLWorkarounds& workarounds) {
+ gl_workarounds_ = workarounds;
+}
+
GLStateRestorer* GLContext::GetGLStateRestorer() {
return state_restorer_.get();
}
@@ -243,6 +251,7 @@ void GLContext::InitializeDynamicBindings() {
if (real_gl_api_) {
real_gl_api_->InitializeFilteredExtensions();
real_gl_api_->set_version(GenerateGLVersionInfo());
+ real_gl_api_->setGLContext(this);
Zhenyao Mo 2017/06/26 21:45:22 This is less optimal. GLContext owns real_gl_api_
jiajia.qin 2017/06/28 10:03:38 Sorry for so many iterations. Please check the new
}
driver_gl_->InitializeDynamicBindings(GetVersionInfo(), GetExtensions());
« 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