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

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

Issue 254883004: Revert 266624 "cc: Split animating and drawing into separate act..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 7 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
« no previous file with comments | « trunk/src/cc/input/input_handler.h ('k') | trunk/src/cc/scheduler/scheduler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <deque> 8 #include <deque>
9 #include <string> 9 #include <string>
10 10
(...skipping 15 matching lines...) Expand all
26 class SyntheticBeginFrameSource; 26 class SyntheticBeginFrameSource;
27 27
28 class SchedulerClient { 28 class SchedulerClient {
29 public: 29 public:
30 virtual void SetNeedsBeginFrame(bool enable) = 0; 30 virtual void SetNeedsBeginFrame(bool enable) = 0;
31 virtual void WillBeginImplFrame(const BeginFrameArgs& args) = 0; 31 virtual void WillBeginImplFrame(const BeginFrameArgs& args) = 0;
32 virtual void ScheduledActionSendBeginMainFrame() = 0; 32 virtual void ScheduledActionSendBeginMainFrame() = 0;
33 virtual DrawSwapReadbackResult ScheduledActionDrawAndSwapIfPossible() = 0; 33 virtual DrawSwapReadbackResult ScheduledActionDrawAndSwapIfPossible() = 0;
34 virtual DrawSwapReadbackResult ScheduledActionDrawAndSwapForced() = 0; 34 virtual DrawSwapReadbackResult ScheduledActionDrawAndSwapForced() = 0;
35 virtual DrawSwapReadbackResult ScheduledActionDrawAndReadback() = 0; 35 virtual DrawSwapReadbackResult ScheduledActionDrawAndReadback() = 0;
36 virtual void ScheduledActionAnimate() = 0;
37 virtual void ScheduledActionCommit() = 0; 36 virtual void ScheduledActionCommit() = 0;
38 virtual void ScheduledActionUpdateVisibleTiles() = 0; 37 virtual void ScheduledActionUpdateVisibleTiles() = 0;
39 virtual void ScheduledActionActivatePendingTree() = 0; 38 virtual void ScheduledActionActivatePendingTree() = 0;
40 virtual void ScheduledActionBeginOutputSurfaceCreation() = 0; 39 virtual void ScheduledActionBeginOutputSurfaceCreation() = 0;
41 virtual void ScheduledActionManageTiles() = 0; 40 virtual void ScheduledActionManageTiles() = 0;
42 virtual void DidAnticipatedDrawTimeChange(base::TimeTicks time) = 0; 41 virtual void DidAnticipatedDrawTimeChange(base::TimeTicks time) = 0;
43 virtual base::TimeDelta DrawDurationEstimate() = 0; 42 virtual base::TimeDelta DrawDurationEstimate() = 0;
44 virtual base::TimeDelta BeginMainFrameToCommitDurationEstimate() = 0; 43 virtual base::TimeDelta BeginMainFrameToCommitDurationEstimate() = 0;
45 virtual base::TimeDelta CommitToActivateDurationEstimate() = 0; 44 virtual base::TimeDelta CommitToActivateDurationEstimate() = 0;
46 virtual void DidBeginImplFrameDeadline() = 0; 45 virtual void DidBeginImplFrameDeadline() = 0;
(...skipping 28 matching lines...) Expand all
75 void NotifyReadyToActivate(); 74 void NotifyReadyToActivate();
76 75
77 void SetNeedsCommit(); 76 void SetNeedsCommit();
78 77
79 // Like SetNeedsCommit(), but ensures a commit will definitely happen even if 78 // Like SetNeedsCommit(), but ensures a commit will definitely happen even if
80 // we are not visible. Will eventually result in a forced draw internally. 79 // we are not visible. Will eventually result in a forced draw internally.
81 void SetNeedsForcedCommitForReadback(); 80 void SetNeedsForcedCommitForReadback();
82 81
83 void SetNeedsRedraw(); 82 void SetNeedsRedraw();
84 83
85 void SetNeedsAnimate();
86
87 void SetNeedsManageTiles(); 84 void SetNeedsManageTiles();
88 85
89 void SetMaxSwapsPending(int max); 86 void SetMaxSwapsPending(int max);
90 void DidSwapBuffers(); 87 void DidSwapBuffers();
91 void SetSwapUsedIncompleteTile(bool used_incomplete_tile); 88 void SetSwapUsedIncompleteTile(bool used_incomplete_tile);
92 void DidSwapBuffersComplete(); 89 void DidSwapBuffersComplete();
93 90
94 void SetSmoothnessTakesPriority(bool smoothness_takes_priority); 91 void SetSmoothnessTakesPriority(bool smoothness_takes_priority);
95 92
96 void NotifyReadyToCommit(); 93 void NotifyReadyToCommit();
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 SchedulerStateMachine::Action inside_action_; 204 SchedulerStateMachine::Action inside_action_;
208 205
209 base::WeakPtrFactory<Scheduler> weak_factory_; 206 base::WeakPtrFactory<Scheduler> weak_factory_;
210 207
211 DISALLOW_COPY_AND_ASSIGN(Scheduler); 208 DISALLOW_COPY_AND_ASSIGN(Scheduler);
212 }; 209 };
213 210
214 } // namespace cc 211 } // namespace cc
215 212
216 #endif // CC_SCHEDULER_SCHEDULER_H_ 213 #endif // CC_SCHEDULER_SCHEDULER_H_
OLDNEW
« no previous file with comments | « trunk/src/cc/input/input_handler.h ('k') | trunk/src/cc/scheduler/scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698