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

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

Issue 811523002: Added ability to dynamically toggle frame throttling in the scheduler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: A few more cleanups pointed out by Brian Created 5 years, 11 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
« no previous file with comments | « cc/scheduler/scheduler.cc ('k') | cc/scheduler/scheduler_unittest.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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 // avoid requesting BeginImplFrames when we won't actually draw but still 150 // avoid requesting BeginImplFrames when we won't actually draw but still
151 // need to advance our state at vsync intervals. 151 // need to advance our state at vsync intervals.
152 void DidEnterPollForAnticipatedDrawTriggers(); 152 void DidEnterPollForAnticipatedDrawTriggers();
153 void DidLeavePollForAnticipatedDrawTriggers(); 153 void DidLeavePollForAnticipatedDrawTriggers();
154 bool inside_poll_for_anticipated_draw_triggers() const { 154 bool inside_poll_for_anticipated_draw_triggers() const {
155 return inside_poll_for_anticipated_draw_triggers_; 155 return inside_poll_for_anticipated_draw_triggers_;
156 } 156 }
157 157
158 // Indicates whether the LayerTreeHostImpl is visible. 158 // Indicates whether the LayerTreeHostImpl is visible.
159 void SetVisible(bool visible); 159 void SetVisible(bool visible);
160 bool visible() const { return visible_; }
160 161
161 // Indicates that a redraw is required, either due to the impl tree changing 162 // Indicates that a redraw is required, either due to the impl tree changing
162 // or the screen being damaged and simply needing redisplay. 163 // or the screen being damaged and simply needing redisplay.
163 void SetNeedsRedraw(); 164 void SetNeedsRedraw();
164 bool needs_redraw() const { return needs_redraw_; } 165 bool needs_redraw() const { return needs_redraw_; }
165 166
166 void SetNeedsAnimate(); 167 void SetNeedsAnimate();
167 bool needs_animate() const { return needs_animate_; } 168 bool needs_animate() const { return needs_animate_; }
168 169
169 // Indicates that prepare-tiles is required. This guarantees another 170 // Indicates that prepare-tiles is required. This guarantees another
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 bool impl_latency_takes_priority_on_battery_; 338 bool impl_latency_takes_priority_on_battery_;
338 bool children_need_begin_frames_; 339 bool children_need_begin_frames_;
339 340
340 private: 341 private:
341 DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine); 342 DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine);
342 }; 343 };
343 344
344 } // namespace cc 345 } // namespace cc
345 346
346 #endif // CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ 347 #endif // CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_
OLDNEW
« no previous file with comments | « cc/scheduler/scheduler.cc ('k') | cc/scheduler/scheduler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698