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

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

Issue 577643002: Making OutputSurface a begin frame source and vsync source. (Closed)
Patch Set: Created 6 years, 3 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 // avoid requesting BeginImplFrames when we won't actually draw but still 142 // avoid requesting BeginImplFrames when we won't actually draw but still
143 // need to advance our state at vsync intervals. 143 // need to advance our state at vsync intervals.
144 void DidEnterPollForAnticipatedDrawTriggers(); 144 void DidEnterPollForAnticipatedDrawTriggers();
145 void DidLeavePollForAnticipatedDrawTriggers(); 145 void DidLeavePollForAnticipatedDrawTriggers();
146 bool inside_poll_for_anticipated_draw_triggers() const { 146 bool inside_poll_for_anticipated_draw_triggers() const {
147 return inside_poll_for_anticipated_draw_triggers_; 147 return inside_poll_for_anticipated_draw_triggers_;
148 } 148 }
149 149
150 // Indicates whether the LayerTreeHostImpl is visible. 150 // Indicates whether the LayerTreeHostImpl is visible.
151 void SetVisible(bool visible); 151 void SetVisible(bool visible);
152 bool visible() const { return visible_; }
152 153
153 // Indicates that a redraw is required, either due to the impl tree changing 154 // Indicates that a redraw is required, either due to the impl tree changing
154 // or the screen being damaged and simply needing redisplay. 155 // or the screen being damaged and simply needing redisplay.
155 void SetNeedsRedraw(); 156 void SetNeedsRedraw();
156 bool needs_redraw() const { return needs_redraw_; } 157 bool needs_redraw() const { return needs_redraw_; }
157 158
158 void SetNeedsAnimate(); 159 void SetNeedsAnimate();
159 bool needs_animate() const { return needs_animate_; } 160 bool needs_animate() const { return needs_animate_; }
160 161
161 // Indicates that manage-tiles is required. This guarantees another 162 // Indicates that manage-tiles is required. This guarantees another
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 bool skip_begin_main_frame_to_reduce_latency_; 315 bool skip_begin_main_frame_to_reduce_latency_;
315 bool continuous_painting_; 316 bool continuous_painting_;
316 317
317 private: 318 private:
318 DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine); 319 DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine);
319 }; 320 };
320 321
321 } // namespace cc 322 } // namespace cc
322 323
323 #endif // CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ 324 #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