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

Unified Diff: android_webview/browser/aw_render_thread_context_provider.cc

Issue 1864723003: Make lost context and error message callbacks on GpuControl go to client (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: errorcallback: nitmissed Created 4 years, 8 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 | « no previous file | blimp/client/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « no previous file | blimp/client/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698