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

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

Issue 199523002: cc: Throttle swaps in Scheduler instead of OutputSurface (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebase; DidSwapBuffersComplete 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
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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 void SetNeedsCommit(); 68 void SetNeedsCommit();
69 69
70 // Like SetNeedsCommit(), but ensures a commit will definitely happen even if 70 // Like SetNeedsCommit(), but ensures a commit will definitely happen even if
71 // 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.
72 void SetNeedsForcedCommitForReadback(); 72 void SetNeedsForcedCommitForReadback();
73 73
74 void SetNeedsRedraw(); 74 void SetNeedsRedraw();
75 75
76 void SetNeedsManageTiles(); 76 void SetNeedsManageTiles();
77 77
78 void SetMaxSwapsPending(int max);
79 void DidSwapBuffers();
78 void SetSwapUsedIncompleteTile(bool used_incomplete_tile); 80 void SetSwapUsedIncompleteTile(bool used_incomplete_tile);
81 void DidSwapBuffersComplete();
79 82
80 void SetSmoothnessTakesPriority(bool smoothness_takes_priority); 83 void SetSmoothnessTakesPriority(bool smoothness_takes_priority);
81 84
82 void NotifyReadyToCommit(); 85 void NotifyReadyToCommit();
83 void BeginMainFrameAborted(bool did_handle); 86 void BeginMainFrameAborted(bool did_handle);
84 87
85 void DidManageTiles(); 88 void DidManageTiles();
86 void DidLoseOutputSurface(); 89 void DidLoseOutputSurface();
87 void DidCreateAndInitializeOutputSurface(); 90 void DidCreateAndInitializeOutputSurface();
88 bool HasInitializedOutputSurface() const { 91 bool HasInitializedOutputSurface() const {
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 SchedulerStateMachine::Action inside_action_; 177 SchedulerStateMachine::Action inside_action_;
175 178
176 base::WeakPtrFactory<Scheduler> weak_factory_; 179 base::WeakPtrFactory<Scheduler> weak_factory_;
177 180
178 DISALLOW_COPY_AND_ASSIGN(Scheduler); 181 DISALLOW_COPY_AND_ASSIGN(Scheduler);
179 }; 182 };
180 183
181 } // namespace cc 184 } // namespace cc
182 185
183 #endif // CC_SCHEDULER_SCHEDULER_H_ 186 #endif // CC_SCHEDULER_SCHEDULER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698