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

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: Fix input handler proxy test build. 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 | « cc/input/input_handler.h ('k') | 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;
36 virtual void ScheduledActionCommit() = 0; 37 virtual void ScheduledActionCommit() = 0;
37 virtual void ScheduledActionUpdateVisibleTiles() = 0; 38 virtual void ScheduledActionUpdateVisibleTiles() = 0;
38 virtual void ScheduledActionActivatePendingTree() = 0; 39 virtual void ScheduledActionActivatePendingTree() = 0;
39 virtual void ScheduledActionBeginOutputSurfaceCreation() = 0; 40 virtual void ScheduledActionBeginOutputSurfaceCreation() = 0;
40 virtual void ScheduledActionManageTiles() = 0; 41 virtual void ScheduledActionManageTiles() = 0;
41 virtual void DidAnticipatedDrawTimeChange(base::TimeTicks time) = 0; 42 virtual void DidAnticipatedDrawTimeChange(base::TimeTicks time) = 0;
42 virtual base::TimeDelta DrawDurationEstimate() = 0; 43 virtual base::TimeDelta DrawDurationEstimate() = 0;
43 virtual base::TimeDelta BeginMainFrameToCommitDurationEstimate() = 0; 44 virtual base::TimeDelta BeginMainFrameToCommitDurationEstimate() = 0;
44 virtual base::TimeDelta CommitToActivateDurationEstimate() = 0; 45 virtual base::TimeDelta CommitToActivateDurationEstimate() = 0;
45 virtual void DidBeginImplFrameDeadline() = 0; 46 virtual void DidBeginImplFrameDeadline() = 0;
(...skipping 28 matching lines...) Expand all
74 void NotifyReadyToActivate(); 75 void NotifyReadyToActivate();
75 76
76 void SetNeedsCommit(); 77 void SetNeedsCommit();
77 78
78 // Like SetNeedsCommit(), but ensures a commit will definitely happen even if 79 // Like SetNeedsCommit(), but ensures a commit will definitely happen even if
79 // we are not visible. Will eventually result in a forced draw internally. 80 // we are not visible. Will eventually result in a forced draw internally.
80 void SetNeedsForcedCommitForReadback(); 81 void SetNeedsForcedCommitForReadback();
81 82
82 void SetNeedsRedraw(); 83 void SetNeedsRedraw();
83 84
85 void SetNeedsAnimate();
86
84 void SetNeedsManageTiles(); 87 void SetNeedsManageTiles();
85 88
86 void SetMaxSwapsPending(int max); 89 void SetMaxSwapsPending(int max);
87 void DidSwapBuffers(); 90 void DidSwapBuffers();
88 void SetSwapUsedIncompleteTile(bool used_incomplete_tile); 91 void SetSwapUsedIncompleteTile(bool used_incomplete_tile);
89 void DidSwapBuffersComplete(); 92 void DidSwapBuffersComplete();
90 93
91 void SetSmoothnessTakesPriority(bool smoothness_takes_priority); 94 void SetSmoothnessTakesPriority(bool smoothness_takes_priority);
92 95
93 void NotifyReadyToCommit(); 96 void NotifyReadyToCommit();
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 SchedulerStateMachine::Action inside_action_; 207 SchedulerStateMachine::Action inside_action_;
205 208
206 base::WeakPtrFactory<Scheduler> weak_factory_; 209 base::WeakPtrFactory<Scheduler> weak_factory_;
207 210
208 DISALLOW_COPY_AND_ASSIGN(Scheduler); 211 DISALLOW_COPY_AND_ASSIGN(Scheduler);
209 }; 212 };
210 213
211 } // namespace cc 214 } // namespace cc
212 215
213 #endif // CC_SCHEDULER_SCHEDULER_H_ 216 #endif // CC_SCHEDULER_SCHEDULER_H_
OLDNEW
« no previous file with comments | « cc/input/input_handler.h ('k') | cc/scheduler/scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698