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

Unified Diff: cc/scheduler/scheduler.cc

Issue 2659123004: cc: Add scheduler support for invalidating content on impl thread. (Closed)
Patch Set: tests Created 3 years, 10 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/scheduler.cc
diff --git a/cc/scheduler/scheduler.cc b/cc/scheduler/scheduler.cc
index d8f9440227d4b858b6190b63fe3baab87aa513c9..dae7aa337451d5efc3b45ed0391e2ad37e85baa6 100644
--- a/cc/scheduler/scheduler.cc
+++ b/cc/scheduler/scheduler.cc
@@ -66,6 +66,11 @@ void Scheduler::Stop() {
stopped_ = true;
}
+void Scheduler::SetNeedsImplSideInvalidation() {
+ state_machine_.SetNeedsImplSideInvalidation();
+ ProcessScheduledActions();
+}
+
base::TimeTicks Scheduler::Now() const {
base::TimeTicks now = base::TimeTicks::Now();
TRACE_EVENT1(TRACE_DISABLED_BY_DEFAULT("cc.debug.scheduler.now"),
@@ -620,6 +625,9 @@ void Scheduler::ProcessScheduledActions() {
client_->ScheduledActionActivateSyncTree();
compositor_timing_history_->DidActivate();
break;
+ case SchedulerStateMachine::ACTION_PERFORM_IMPL_SIDE_INVALIDATION:
+ state_machine_.WillRunImplSideInvalidation();
+ client_->ScheduledActionPerformImplSideInvalidation();
sunnyps 2017/02/14 21:40:18 break?
Khushal 2017/02/15 00:56:33 Woops. Let me add add the Scheduler tests also. :)
case SchedulerStateMachine::ACTION_DRAW_IF_POSSIBLE:
DrawIfPossible();
break;

Powered by Google App Engine
This is Rietveld 408576698