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

Unified Diff: ui/gl/gl_context.cc

Issue 2347383002: X11: Use better visuals for OpenGL (Closed)
Patch Set: Fix various tests Created 4 years, 3 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
Index: ui/gl/gl_context.cc
diff --git a/ui/gl/gl_context.cc b/ui/gl/gl_context.cc
index f38a7fcc3b18f48cebc7ec4a6016988ccd7bb5e9..3ebbf5fb9e8caab1107ac4f22e815be665c90dd9 100644
--- a/ui/gl/gl_context.cc
+++ b/ui/gl/gl_context.cc
@@ -49,9 +49,10 @@ GLContext::GLContext(GLShareGroup* share_group)
current_virtual_context_(nullptr),
state_dirtied_externally_(false),
swap_interval_(1),
- force_swap_interval_zero_(false) {
+ force_swap_interval_zero_(false),
+ weak_factory_(this) {
if (!share_group_.get())
- share_group_ = new GLShareGroup;
+ share_group_ = gl::CreateGLShareGroup();
share_group_->AddContext(this);
}

Powered by Google App Engine
This is Rietveld 408576698