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

Side by Side Diff: cc/scheduler/scheduler.h

Issue 206793003: cc: Split animating and drawing into separate actions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup. Created 6 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_SCHEDULER_SCHEDULER_H_ 5 #ifndef CC_SCHEDULER_SCHEDULER_H_
6 #define CC_SCHEDULER_SCHEDULER_H_ 6 #define CC_SCHEDULER_SCHEDULER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 11 matching lines...) Expand all
22 22
23 class Thread; 23 class Thread;
24 24
25 class SchedulerClient { 25 class SchedulerClient {
26 public: 26 public:
27 virtual void SetNeedsBeginImplFrame(bool enable) = 0; 27 virtual void SetNeedsBeginImplFrame(bool enable) = 0;
28 virtual void ScheduledActionSendBeginMainFrame() = 0; 28 virtual void ScheduledActionSendBeginMainFrame() = 0;
29 virtual DrawSwapReadbackResult ScheduledActionDrawAndSwapIfPossible() = 0; 29 virtual DrawSwapReadbackResult ScheduledActionDrawAndSwapIfPossible() = 0;
30 virtual DrawSwapReadbackResult ScheduledActionDrawAndSwapForced() = 0; 30 virtual DrawSwapReadbackResult ScheduledActionDrawAndSwapForced() = 0;
31 virtual DrawSwapReadbackResult ScheduledActionDrawAndReadback() = 0; 31 virtual DrawSwapReadbackResult ScheduledActionDrawAndReadback() = 0;
32 virtual void ScheduledActionAnimate() = 0;
32 virtual void ScheduledActionCommit() = 0; 33 virtual void ScheduledActionCommit() = 0;
33 virtual void ScheduledActionUpdateVisibleTiles() = 0; 34 virtual void ScheduledActionUpdateVisibleTiles() = 0;
34 virtual void ScheduledActionActivatePendingTree() = 0; 35 virtual void ScheduledActionActivatePendingTree() = 0;
35 virtual void ScheduledActionBeginOutputSurfaceCreation() = 0; 36 virtual void ScheduledActionBeginOutputSurfaceCreation() = 0;
36 virtual void ScheduledActionAcquireLayerTexturesForMainThread() = 0; 37 virtual void ScheduledActionAcquireLayerTexturesForMainThread() = 0;
37 virtual void ScheduledActionManageTiles() = 0; 38 virtual void ScheduledActionManageTiles() = 0;
38 virtual void DidAnticipatedDrawTimeChange(base::TimeTicks time) = 0; 39 virtual void DidAnticipatedDrawTimeChange(base::TimeTicks time) = 0;
39 virtual base::TimeDelta DrawDurationEstimate() = 0; 40 virtual base::TimeDelta DrawDurationEstimate() = 0;
40 virtual base::TimeDelta BeginMainFrameToCommitDurationEstimate() = 0; 41 virtual base::TimeDelta BeginMainFrameToCommitDurationEstimate() = 0;
41 virtual base::TimeDelta CommitToActivateDurationEstimate() = 0; 42 virtual base::TimeDelta CommitToActivateDurationEstimate() = 0;
(...skipping 23 matching lines...) Expand all
65 void NotifyReadyToActivate(); 66 void NotifyReadyToActivate();
66 67
67 void SetNeedsCommit(); 68 void SetNeedsCommit();
68 69
69 // Like SetNeedsCommit(), but ensures a commit will definitely happen even if 70 // Like SetNeedsCommit(), but ensures a commit will definitely happen even if
70 // we are not visible. Will eventually result in a forced draw internally. 71 // we are not visible. Will eventually result in a forced draw internally.
71 void SetNeedsForcedCommitForReadback(); 72 void SetNeedsForcedCommitForReadback();
72 73
73 void SetNeedsRedraw(); 74 void SetNeedsRedraw();
74 75
76 void SetNeedsAnimate();
77
75 void SetNeedsManageTiles(); 78 void SetNeedsManageTiles();
76 79
77 void SetMainThreadNeedsLayerTextures(); 80 void SetMainThreadNeedsLayerTextures();
78 81
79 void SetSwapUsedIncompleteTile(bool used_incomplete_tile); 82 void SetSwapUsedIncompleteTile(bool used_incomplete_tile);
80 83
81 void SetSmoothnessTakesPriority(bool smoothness_takes_priority); 84 void SetSmoothnessTakesPriority(bool smoothness_takes_priority);
82 85
83 void NotifyReadyToCommit(); 86 void NotifyReadyToCommit();
84 void BeginMainFrameAborted(bool did_handle); 87 void BeginMainFrameAborted(bool did_handle);
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 SchedulerStateMachine::Action inside_action_; 161 SchedulerStateMachine::Action inside_action_;
159 162
160 base::WeakPtrFactory<Scheduler> weak_factory_; 163 base::WeakPtrFactory<Scheduler> weak_factory_;
161 164
162 DISALLOW_COPY_AND_ASSIGN(Scheduler); 165 DISALLOW_COPY_AND_ASSIGN(Scheduler);
163 }; 166 };
164 167
165 } // namespace cc 168 } // namespace cc
166 169
167 #endif // CC_SCHEDULER_SCHEDULER_H_ 170 #endif // CC_SCHEDULER_SCHEDULER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/scheduler/scheduler.cc » ('j') | cc/scheduler/scheduler_state_machine_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698