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

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

Issue 292533002: Remove forced commit and readback from the scheduler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rm-cnr-scheduler: tests 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
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 14 matching lines...) Expand all
25 class Thread; 25 class Thread;
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 DrawResult ScheduledActionDrawAndSwapIfPossible() = 0; 33 virtual DrawResult ScheduledActionDrawAndSwapIfPossible() = 0;
34 virtual DrawResult ScheduledActionDrawAndSwapForced() = 0; 34 virtual DrawResult ScheduledActionDrawAndSwapForced() = 0;
35 virtual DrawResult ScheduledActionDrawAndReadback() = 0;
36 virtual void ScheduledActionAnimate() = 0; 35 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;
(...skipping 23 matching lines...) Expand all
69 void SetEstimatedParentDrawTime(base::TimeDelta draw_time); 68 void SetEstimatedParentDrawTime(base::TimeDelta draw_time);
70 69
71 void SetCanStart(); 70 void SetCanStart();
72 71
73 void SetVisible(bool visible); 72 void SetVisible(bool visible);
74 void SetCanDraw(bool can_draw); 73 void SetCanDraw(bool can_draw);
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
80 // we are not visible. Will eventually result in a forced draw internally.
81 void SetNeedsForcedCommitForReadback();
82
83 void SetNeedsRedraw(); 78 void SetNeedsRedraw();
84 79
85 void SetNeedsAnimate(); 80 void SetNeedsAnimate();
86 81
87 void SetNeedsManageTiles(); 82 void SetNeedsManageTiles();
88 83
89 void SetMaxSwapsPending(int max); 84 void SetMaxSwapsPending(int max);
90 void DidSwapBuffers(); 85 void DidSwapBuffers();
91 void SetSwapUsedIncompleteTile(bool used_incomplete_tile); 86 void SetSwapUsedIncompleteTile(bool used_incomplete_tile);
92 void DidSwapBuffersComplete(); 87 void DidSwapBuffersComplete();
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 SchedulerStateMachine::Action inside_action_; 199 SchedulerStateMachine::Action inside_action_;
205 200
206 base::WeakPtrFactory<Scheduler> weak_factory_; 201 base::WeakPtrFactory<Scheduler> weak_factory_;
207 202
208 DISALLOW_COPY_AND_ASSIGN(Scheduler); 203 DISALLOW_COPY_AND_ASSIGN(Scheduler);
209 }; 204 };
210 205
211 } // namespace cc 206 } // namespace cc
212 207
213 #endif // CC_SCHEDULER_SCHEDULER_H_ 208 #endif // CC_SCHEDULER_SCHEDULER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698