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

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 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 // Like SetNeedsCommit(), but ensures a commit will definitely happen even if 71 // Like SetNeedsCommit(), but ensures a commit will definitely happen even if
72 // we are not visible. Will eventually result in a forced draw internally. 72 // we are not visible. Will eventually result in a forced draw internally.
73 void SetNeedsForcedCommitForReadback(); 73 void SetNeedsForcedCommitForReadback();
74 74
75 void SetNeedsRedraw(); 75 void SetNeedsRedraw();
76 76
77 void SetNeedsManageTiles(); 77 void SetNeedsManageTiles();
78 78
79 void SetMainThreadNeedsLayerTextures(); 79 void SetMainThreadNeedsLayerTextures();
80 80
81 void SetMaxSwapsPending(int max);
82 void DidSwapBuffers();
81 void SetSwapUsedIncompleteTile(bool used_incomplete_tile); 83 void SetSwapUsedIncompleteTile(bool used_incomplete_tile);
84 void OnSwapBuffersComplete();
82 85
83 void SetSmoothnessTakesPriority(bool smoothness_takes_priority); 86 void SetSmoothnessTakesPriority(bool smoothness_takes_priority);
84 87
85 void NotifyReadyToCommit(); 88 void NotifyReadyToCommit();
86 void BeginMainFrameAborted(bool did_handle); 89 void BeginMainFrameAborted(bool did_handle);
87 90
88 void DidManageTiles(); 91 void DidManageTiles();
89 void DidLoseOutputSurface(); 92 void DidLoseOutputSurface();
90 void DidCreateAndInitializeOutputSurface(); 93 void DidCreateAndInitializeOutputSurface();
91 bool HasInitializedOutputSurface() const { 94 bool HasInitializedOutputSurface() const {
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 SchedulerStateMachine::Action inside_action_; 180 SchedulerStateMachine::Action inside_action_;
178 181
179 base::WeakPtrFactory<Scheduler> weak_factory_; 182 base::WeakPtrFactory<Scheduler> weak_factory_;
180 183
181 DISALLOW_COPY_AND_ASSIGN(Scheduler); 184 DISALLOW_COPY_AND_ASSIGN(Scheduler);
182 }; 185 };
183 186
184 } // namespace cc 187 } // namespace cc
185 188
186 #endif // CC_SCHEDULER_SCHEDULER_H_ 189 #endif // CC_SCHEDULER_SCHEDULER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698