| Index: cc/trees/thread_proxy.cc
|
| diff --git a/cc/trees/thread_proxy.cc b/cc/trees/thread_proxy.cc
|
| index 5c6533a43745501937d9987bf48cff0cd98263ef..760dfb96110f296c71c12f109e2a5409b3b26b5f 100644
|
| --- a/cc/trees/thread_proxy.cc
|
| +++ b/cc/trees/thread_proxy.cc
|
| @@ -538,6 +538,12 @@ void ThreadProxy::SetNeedsRedrawOnImplThread() {
|
| scheduler_on_impl_thread_->SetNeedsRedraw();
|
| }
|
|
|
| +void ThreadProxy::SetNeedsManageTilesOnImplThread() {
|
| + DCHECK(IsImplThread());
|
| + TRACE_EVENT0("cc", "ThreadProxy::SetNeedsManageTilesOnImplThread");
|
| + scheduler_on_impl_thread_->SetNeedsManageTiles();
|
| +}
|
| +
|
| void ThreadProxy::SetNeedsRedrawRectOnImplThread(gfx::Rect damage_rect) {
|
| DCHECK(IsImplThread());
|
| layer_tree_host_impl_->SetViewportDamage(damage_rect);
|
| @@ -1137,12 +1143,6 @@ DrawSwapReadbackResult ThreadProxy::DrawSwapReadbackInternal(
|
| 50);
|
| }
|
|
|
| - // Update the tile state after drawing. This prevents manage tiles from
|
| - // being in the critical path for getting things on screen, but still
|
| - // makes sure that tile state is updated on a semi-regular basis.
|
| - if (layer_tree_host_impl_->settings().impl_side_painting)
|
| - layer_tree_host_impl_->ManageTiles();
|
| -
|
| return result;
|
| }
|
|
|
| @@ -1187,6 +1187,12 @@ void ThreadProxy::ScheduledActionAcquireLayerTexturesForMainThread() {
|
| texture_acquisition_completion_event_on_impl_thread_ = NULL;
|
| }
|
|
|
| +void ThreadProxy::ScheduledActionManageTiles() {
|
| + TRACE_EVENT0("cc", "ThreadProxy::ScheduledActionManageTiles");
|
| + DCHECK(layer_tree_host_impl_->settings().impl_side_painting);
|
| + layer_tree_host_impl_->ManageTiles();
|
| +}
|
| +
|
| DrawSwapReadbackResult ThreadProxy::ScheduledActionDrawAndSwapIfPossible() {
|
| TRACE_EVENT0("cc", "ThreadProxy::ScheduledActionDrawAndSwap");
|
| bool forced_draw = false;
|
|
|