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

Unified Diff: cc/scheduler.cc

Issue 11879012: cc: Redraw incomplete frames when new texture uploads finish (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@decouple_draw3b
Patch Set: Add trace events and isImplThread DCHECKS Created 7 years, 11 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
Index: cc/scheduler.cc
diff --git a/cc/scheduler.cc b/cc/scheduler.cc
index f25a883220bc944b7e03af87c8908dcfd2e7d185..d2ab45e5f52cf956aeec163168d30146ea202c3f 100644
--- a/cc/scheduler.cc
+++ b/cc/scheduler.cc
@@ -77,6 +77,12 @@ void Scheduler::setNeedsRedraw()
processScheduledActions();
}
+void Scheduler::setNeedsRedrawOnVisibleTextureUpload()
+{
+ m_stateMachine.setNeedsRedrawOnVisibleTextureUpload();
+ processScheduledActions();
+}
+
void Scheduler::setNeedsForcedRedraw()
{
m_stateMachine.setNeedsForcedRedraw();
@@ -177,6 +183,9 @@ void Scheduler::processScheduledActions()
case SchedulerStateMachine::ACTION_COMMIT:
m_client->scheduledActionCommit();
break;
+ case SchedulerStateMachine::ACTION_CHECK_FOR_NEW_TEXTURES:
+ m_client->scheduledActionCheckForNewTextures();
+ break;
case SchedulerStateMachine::ACTION_ACTIVATE_PENDING_TREE_IF_NEEDED:
m_client->scheduledActionActivatePendingTreeIfNeeded();
break;
« cc/layer_tree_host_impl.cc ('K') | « cc/scheduler.h ('k') | cc/scheduler_state_machine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698