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

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: fix [chromium-style] virtual methods with non-empty bodies shouldn't be declared inline 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
« no previous file with comments | « cc/scheduler.h ('k') | cc/scheduler_state_machine.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/scheduler.cc
diff --git a/cc/scheduler.cc b/cc/scheduler.cc
index dbe96dde718341bb72069b7cc6ed2aeeb959371f..b290740b7c900bbc731eff1d6c0f6fc859fcb6f0 100644
--- a/cc/scheduler.cc
+++ b/cc/scheduler.cc
@@ -72,6 +72,12 @@ void Scheduler::setNeedsRedraw()
processScheduledActions();
}
+void Scheduler::didSwapUseIncompleteTexture()
+{
+ m_stateMachine.didSwapUseIncompleteTexture();
+ 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->scheduledActionCheckForCompletedTextures();
+ break;
case SchedulerStateMachine::ACTION_ACTIVATE_PENDING_TREE_IF_NEEDED:
m_client->scheduledActionActivatePendingTreeIfNeeded();
break;
« no previous file with comments | « cc/scheduler.h ('k') | cc/scheduler_state_machine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698