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

Unified Diff: cc/scheduler/scheduler.h

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/layers/picture_layer_impl.cc ('k') | cc/scheduler/scheduler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/scheduler/scheduler.h
diff --git a/cc/scheduler/scheduler.h b/cc/scheduler/scheduler.h
index e740eb7c078c6399aa47e2a9b46195f45f1d0ee5..0f216b4521c052379617193ad57c41124a2fa87b 100644
--- a/cc/scheduler/scheduler.h
+++ b/cc/scheduler/scheduler.h
@@ -42,6 +42,7 @@ class SchedulerClient {
virtual void ScheduledActionActivatePendingTree() = 0;
virtual void ScheduledActionBeginOutputSurfaceCreation() = 0;
virtual void ScheduledActionAcquireLayerTexturesForMainThread() = 0;
+ virtual void ScheduledActionManageTiles() = 0;
virtual void DidAnticipatedDrawTimeChange(base::TimeTicks time) = 0;
virtual base::TimeDelta DrawDurationEstimate() = 0;
virtual base::TimeDelta BeginFrameToCommitDurationEstimate() = 0;
@@ -75,6 +76,8 @@ class CC_EXPORT Scheduler {
void SetNeedsRedraw();
+ void SetNeedsManageTiles();
+
void SetMainThreadNeedsLayerTextures();
void SetSwapUsedIncompleteTile(bool used_incomplete_tile);
@@ -90,6 +93,9 @@ class CC_EXPORT Scheduler {
bool CommitPending() const { return state_machine_.CommitPending(); }
bool RedrawPending() const { return state_machine_.RedrawPending(); }
+ bool ManageTilesPending() const {
+ return state_machine_.ManageTilesPending();
+ }
bool WillDrawIfNeeded() const;
@@ -104,6 +110,10 @@ class CC_EXPORT Scheduler {
return state_machine_.AsValue().Pass();
}
+ bool IsInsideAction(SchedulerStateMachine::Action action) {
+ return inside_action_ == action;
+ }
+
private:
Scheduler(SchedulerClient* client,
const SchedulerSettings& scheduler_settings);
@@ -125,6 +135,7 @@ class CC_EXPORT Scheduler {
SchedulerStateMachine state_machine_;
bool inside_process_scheduled_actions_;
+ SchedulerStateMachine::Action inside_action_;
DISALLOW_COPY_AND_ASSIGN(Scheduler);
};
« no previous file with comments | « cc/layers/picture_layer_impl.cc ('k') | cc/scheduler/scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698