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

Unified Diff: cc/trees/thread_proxy.cc

Issue 18191020: UI Resource Manager (Closed) Base URL: https://src.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 5 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
« cc/trees/thread_proxy.h ('K') | « cc/trees/thread_proxy.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/thread_proxy.cc
===================================================================
--- cc/trees/thread_proxy.cc (revision 210393)
+++ cc/trees/thread_proxy.cc (working copy)
@@ -784,7 +784,6 @@
scoped_refptr<cc::ContextProvider> offscreen_context_provider) {
scoped_ptr<ResourceUpdateQueue> queue(raw_queue);
- TRACE_EVENT0("cc", "ThreadProxy::StartCommitOnImplThread");
aelias_OOO_until_Jul13 2013/07/23 00:06:48 Looks like you deleted this line by accident.
powei 2013/07/24 02:28:29 Done.
DCHECK(!commit_completion_event_on_impl_thread_);
DCHECK(IsImplThread() && IsMainThreadBlocked());
DCHECK(scheduler_on_impl_thread_);
@@ -1445,4 +1444,18 @@
}
}
+void ThreadProxy::UIResourceLostOnImplThread(UIResourceId uid) {
+ DCHECK(IsImplThread());
+ Proxy::MainThreadTaskRunner()->PostTask(
+ FROM_HERE,
+ base::Bind(&ThreadProxy::PostUIResourceLostToMainThread,
+ main_thread_weak_ptr_,
+ uid));
+}
+
+void ThreadProxy::PostUIResourceLostToMainThread(UIResourceId uid) {
+ DCHECK(IsMainThread());
+ layer_tree_host_->UIResourceLost(uid);
+}
+
} // namespace cc
« cc/trees/thread_proxy.h ('K') | « cc/trees/thread_proxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698