Chromium Code Reviews| 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 |