| Index: content/common/gpu/media/rendering_helper.cc
|
| diff --git a/content/common/gpu/media/rendering_helper.cc b/content/common/gpu/media/rendering_helper.cc
|
| index 00e85f9f0ecd0c44b1961175d1fc5ce248670712..82fcfa9cbbd7ee9e56d6c82cac8943b04efb4156 100644
|
| --- a/content/common/gpu/media/rendering_helper.cc
|
| +++ b/content/common/gpu/media/rendering_helper.cc
|
| @@ -171,8 +171,8 @@ void RenderingHelper::Initialize(const RenderingHelperParams& params,
|
|
|
| gl_surface_ = gfx::GLSurface::CreateViewGLSurface(window_);
|
| gl_context_ = gfx::GLContext::CreateGLContext(
|
| - NULL, gl_surface_, gfx::PreferIntegratedGpu);
|
| - gl_context_->MakeCurrent(gl_surface_);
|
| + NULL, gl_surface_.get(), gfx::PreferIntegratedGpu);
|
| + gl_context_->MakeCurrent(gl_surface_.get());
|
|
|
| CHECK_GT(params.window_sizes.size(), 0U);
|
| videos_.resize(params.window_sizes.size());
|
| @@ -317,7 +317,7 @@ void RenderingHelper::UnInitialize(base::WaitableEvent* done) {
|
| glDeleteFramebuffersEXT(1, &thumbnails_fbo_id_);
|
| }
|
|
|
| - gl_context_->ReleaseCurrent(gl_surface_);
|
| + gl_context_->ReleaseCurrent(gl_surface_.get());
|
| gl_context_ = NULL;
|
| gl_surface_ = NULL;
|
|
|
|
|