| 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);
|
| }
|
|
|