Index: cc/trees/thread_proxy.cc |
diff --git a/cc/trees/thread_proxy.cc b/cc/trees/thread_proxy.cc |
index 3010fba95c32165329df0ad5ea7a3d56d8c2a879..482b679bd6849bec51084a9e2ac82301b707bd07 100644 |
--- a/cc/trees/thread_proxy.cc |
+++ b/cc/trees/thread_proxy.cc |
@@ -395,6 +395,10 @@ void ThreadProxy::NotifyReadyToDraw() { |
impl().scheduler->NotifyReadyToDraw(); |
} |
+void ThreadProxy::SetRequiresHighResToDraw(bool required) { |
+ impl().scheduler->SetRequiresHighResToDraw(required); |
+} |
+ |
void ThreadProxy::SetNeedsCommitOnImplThread() { |
TRACE_EVENT0("cc", "ThreadProxy::SetNeedsCommitOnImplThread"); |
DCHECK(IsImplThread()); |
@@ -511,9 +515,9 @@ void ThreadProxy::SetNeedsAnimateOnImplThread() { |
impl().scheduler->SetNeedsAnimate(); |
} |
-void ThreadProxy::SetNeedsPrepareTilesOnImplThread() { |
+void ThreadProxy::SetNeedsPrepareTilesOnImplThread(bool for_commit) { |
DCHECK(IsImplThread()); |
- impl().scheduler->SetNeedsPrepareTiles(); |
+ impl().scheduler->SetNeedsPrepareTiles(for_commit); |
} |
void ThreadProxy::SetNeedsRedrawRectOnImplThread(const gfx::Rect& damage_rect) { |
@@ -1059,12 +1063,6 @@ DrawResult ThreadProxy::DrawSwapInternal(bool forced_draw) { |
impl().timing_history.DidStartDrawing(); |
base::AutoReset<bool> mark_inside(&impl().inside_draw, true); |
- if (impl().layer_tree_host_impl->pending_tree()) { |
- bool update_lcd_text = false; |
- impl().layer_tree_host_impl->pending_tree()->UpdateDrawProperties( |
- update_lcd_text); |
- } |
- |
// This method is called on a forced draw, regardless of whether we are able |
// to produce a frame, as the calling site on main thread is blocked until its |
// request completes, and we signal completion here. If CanDraw() is false, we |
@@ -1349,7 +1347,7 @@ void ThreadProxy::RenewTreePriority() { |
// Once we enter NEW_CONTENTS_TAKES_PRIORITY mode, visible tiles on active |
// tree might be freed. We need to set RequiresHighResToDraw to ensure that |
// high res tiles will be required to activate pending tree. |
- impl().layer_tree_host_impl->SetRequiresHighResToDraw(); |
+ impl().layer_tree_host_impl->SetRequiresHighResToDraw(true); |
priority = NEW_CONTENT_TAKES_PRIORITY; |
} |
@@ -1396,11 +1394,6 @@ void ThreadProxy::DidActivateSyncTree() { |
impl().last_begin_main_frame_args; |
} |
-void ThreadProxy::DidPrepareTiles() { |
- DCHECK(IsImplThread()); |
- impl().scheduler->DidPrepareTiles(); |
-} |
- |
void ThreadProxy::DidCompletePageScaleAnimationOnImplThread() { |
DCHECK(IsImplThread()); |
Proxy::MainThreadTaskRunner()->PostTask( |