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

Unified Diff: cc/trees/proxy_main.cc

Issue 2702433002: Clear renderer compositor trees if new page does not render in 4 seconds (Closed)
Patch Set: Removed a semicolon Created 3 years, 10 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 | « cc/trees/proxy_main.h ('k') | cc/trees/single_thread_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/proxy_main.cc
diff --git a/cc/trees/proxy_main.cc b/cc/trees/proxy_main.cc
index bab54a09e88746c6b27e93c5dceef295bfd6f556..0a7a127e052118e4ebbec9929c6d4a59b4bbedf1 100644
--- a/cc/trees/proxy_main.cc
+++ b/cc/trees/proxy_main.cc
@@ -484,4 +484,11 @@ base::SingleThreadTaskRunner* ProxyMain::ImplThreadTaskRunner() {
return task_runner_provider_->ImplThreadTaskRunner();
}
+void ProxyMain::ResetTrees() {
+ DCHECK(IsMainThread());
+ ImplThreadTaskRunner()->PostTask(
+ FROM_HERE,
+ base::Bind(&ProxyImpl::ResetTrees, base::Unretained(proxy_impl_.get())));
+}
+
} // namespace cc
« no previous file with comments | « cc/trees/proxy_main.h ('k') | cc/trees/single_thread_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698