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

Unified Diff: cc/trees/thread_proxy.cc

Issue 23495022: CC: Add a scheduled action for ManageTiles (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unused. Created 7 years, 3 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') | 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
diff --git a/cc/trees/thread_proxy.cc b/cc/trees/thread_proxy.cc
index 3722662c20999bba2d1ad855957b2d11c9bcab9a..7f590f06be330d2f445f013eafa1aac4364045b6 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);
@@ -1148,12 +1154,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;
}
@@ -1198,6 +1198,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;
« no previous file with comments | « cc/trees/thread_proxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698