| Index: android_webview/browser/aw_render_thread_context_provider.cc
|
| diff --git a/android_webview/browser/aw_render_thread_context_provider.cc b/android_webview/browser/aw_render_thread_context_provider.cc
|
| index 6a28b8259277c2e28178a907aeb28d49d46ebec1..18c7087096045758bb697c19b8a9763d8eed64c9 100644
|
| --- a/android_webview/browser/aw_render_thread_context_provider.cc
|
| +++ b/android_webview/browser/aw_render_thread_context_provider.cc
|
| @@ -56,7 +56,7 @@ AwRenderThreadContextProvider::AwRenderThreadContextProvider(
|
| gfx::PreferDiscreteGpu, gpu::GLInProcessContextSharedMemoryLimits(),
|
| nullptr, nullptr));
|
|
|
| - context_->SetContextLostCallback(base::Bind(
|
| + context_->GetImplementation()->SetLostContextCallback(base::Bind(
|
| &AwRenderThreadContextProvider::OnLostContext, base::Unretained(this)));
|
|
|
| capabilities_.gpu = context_->GetImplementation()->capabilities();
|
| @@ -145,7 +145,7 @@ void AwRenderThreadContextProvider::OnLostContext() {
|
| DCHECK(main_thread_checker_.CalledOnValidThread());
|
|
|
| if (!lost_context_callback_.is_null())
|
| - base::ResetAndReturn(&lost_context_callback_).Run();
|
| + lost_context_callback_.Run();
|
| if (gr_context_)
|
| gr_context_->abandonContext();
|
| }
|
|
|