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

Unified Diff: cc/scheduler/scheduler.cc

Issue 2659123004: cc: Add scheduler support for invalidating content on impl thread. (Closed)
Patch Set: commit_to_active Created 3 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/scheduler.cc
diff --git a/cc/scheduler/scheduler.cc b/cc/scheduler/scheduler.cc
index d8f9440227d4b858b6190b63fe3baab87aa513c9..3c31df47bd43bd7beb1633e9f5ce2fbaff6ea7d5 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_RUN_IMPL_SIDE_INVALIDATION:
+ state_machine_.WillRunImplSideInvalidation();
+ client_->ScheduledActionRunImplSideInvalidation();
case SchedulerStateMachine::ACTION_DRAW_IF_POSSIBLE:
DrawIfPossible();
break;

Powered by Google App Engine
This is Rietveld 408576698