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_state_machine.h

Issue 1435133004: cc: Clean up max frames/swaps pending usage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 1 month 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
« no previous file with comments | « cc/scheduler/scheduler.cc ('k') | cc/scheduler/scheduler_state_machine.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_STATE_MACHINE_H_ 5 #ifndef CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_
6 #define CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ 6 #define CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 167
168 void SetNeedsAnimate(); 168 void SetNeedsAnimate();
169 bool needs_animate() const { return needs_animate_; } 169 bool needs_animate() const { return needs_animate_; }
170 170
171 bool OnlyImplSideUpdatesExpected() const; 171 bool OnlyImplSideUpdatesExpected() const;
172 172
173 // Indicates that prepare-tiles is required. This guarantees another 173 // Indicates that prepare-tiles is required. This guarantees another
174 // PrepareTiles will occur shortly (even if no redraw is required). 174 // PrepareTiles will occur shortly (even if no redraw is required).
175 void SetNeedsPrepareTiles(); 175 void SetNeedsPrepareTiles();
176 176
177 // Sets how many swaps can be pending to the OutputSurface.
178 void SetMaxSwapsPending(int max);
179
180 // If the scheduler attempted to draw and swap, this provides feedback 177 // If the scheduler attempted to draw and swap, this provides feedback
181 // regarding whether or not the swap actually occured. We might skip the 178 // regarding whether or not the swap actually occured. We might skip the
182 // swap when there is not damage, for example. 179 // swap when there is not damage, for example.
183 void DidSwapBuffers(); 180 void DidSwapBuffers();
184 181
185 // Indicates whether a redraw is required because we are currently rendering 182 // Indicates whether a redraw is required because we are currently rendering
186 // with a low resolution or checkerboarded tile. 183 // with a low resolution or checkerboarded tile.
187 void SetSwapUsedIncompleteTile(bool used_incomplete_tile); 184 void SetSwapUsedIncompleteTile(bool used_incomplete_tile);
188 185
189 // Notification from the OutputSurface that a swap has been consumed. 186 // Notification from the OutputSurface that a swap has been consumed.
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 bool did_request_swap_in_last_frame_; 341 bool did_request_swap_in_last_frame_;
345 bool did_perform_swap_in_last_draw_; 342 bool did_perform_swap_in_last_draw_;
346 343
347 private: 344 private:
348 DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine); 345 DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine);
349 }; 346 };
350 347
351 } // namespace cc 348 } // namespace cc
352 349
353 #endif // CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ 350 #endif // CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_
OLDNEW
« no previous file with comments | « cc/scheduler/scheduler.cc ('k') | cc/scheduler/scheduler_state_machine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698