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

Unified Diff: cc/trees/thread_proxy.cc

Issue 1385043002: cc: Remove SetLayerTreeHostClientReady() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@startcomp
Patch Set: sky's offline comment Created 5 years, 2 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/thread_proxy.h ('k') | cc/trees/threaded_channel.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/thread_proxy.cc
diff --git a/cc/trees/thread_proxy.cc b/cc/trees/thread_proxy.cc
index ca6eb73d5cd6c48dc6ba74b1e84ed88d5a1752bd..8f23e5c96b7abab620e3071ff2cc1ca4b4aa6f40 100644
--- a/cc/trees/thread_proxy.cc
+++ b/cc/trees/thread_proxy.cc
@@ -158,16 +158,6 @@ bool ThreadProxy::CommitToActiveTree() const {
return false;
}
-void ThreadProxy::SetLayerTreeHostClientReady() {
- TRACE_EVENT0("cc", "ThreadProxy::SetLayerTreeHostClientReady");
- main().channel_main->SetLayerTreeHostClientReadyOnImpl();
-}
-
-void ThreadProxy::SetLayerTreeHostClientReadyOnImpl() {
- TRACE_EVENT0("cc", "ThreadProxy::SetLayerTreeHostClientReadyOnImplThread");
- impl().scheduler->SetCanStart();
-}
-
void ThreadProxy::SetVisible(bool visible) {
TRACE_EVENT1("cc", "ThreadProxy::SetVisible", "visible", visible);
DebugScopedSetMainThreadBlocked main_thread_blocked(this);
@@ -1037,7 +1027,8 @@ void ThreadProxy::InitializeImplOnImplThread(CompletionEvent* completion) {
ImplThreadTaskRunner(), impl().external_begin_frame_source.get(),
compositor_timing_history.Pass());
- impl().scheduler->SetVisible(impl().layer_tree_host_impl->visible());
+ DCHECK_EQ(impl().scheduler->visible(),
+ impl().layer_tree_host_impl->visible());
impl_thread_weak_ptr_ = impl().weak_factory.GetWeakPtr();
completion->Signal();
}
« no previous file with comments | « cc/trees/thread_proxy.h ('k') | cc/trees/threaded_channel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698