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

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

Issue 423773002: Unified BeginFrame scheduling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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 | Annotate | Revision Log
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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 228
229 // True if we need to abort draws to make forward progress. 229 // True if we need to abort draws to make forward progress.
230 bool PendingDrawsShouldBeAborted() const; 230 bool PendingDrawsShouldBeAborted() const;
231 231
232 bool SupportsProactiveBeginFrame() const; 232 bool SupportsProactiveBeginFrame() const;
233 233
234 void SetContinuousPainting(bool continuous_painting) { 234 void SetContinuousPainting(bool continuous_painting) {
235 continuous_painting_ = continuous_painting; 235 continuous_painting_ = continuous_painting;
236 } 236 }
237 237
238 void SetChildrenNeedBeginFrames(bool children_need_begin_frames);
239 bool children_need_begin_frames() { return children_need_begin_frames_; }
240
238 protected: 241 protected:
239 bool BeginFrameNeededToAnimateOrDraw() const; 242 bool BeginFrameNeededToAnimateOrDraw() const;
243 bool BeginFrameNeededToChildren() const;
brianderson 2014/09/04 18:45:46 BeginFrameNeededToChildren -> BeginFrameNeededForC
240 bool ProactiveBeginFrameWanted() const; 244 bool ProactiveBeginFrameWanted() const;
241 245
242 // True if we need to force activations to make forward progress. 246 // True if we need to force activations to make forward progress.
243 bool PendingActivationsShouldBeForced() const; 247 bool PendingActivationsShouldBeForced() const;
244 248
245 bool ShouldAnimate() const; 249 bool ShouldAnimate() const;
246 bool ShouldBeginOutputSurfaceCreation() const; 250 bool ShouldBeginOutputSurfaceCreation() const;
247 bool ShouldDrawForced() const; 251 bool ShouldDrawForced() const;
248 bool ShouldDraw() const; 252 bool ShouldDraw() const;
249 bool ShouldActivatePendingTree() const; 253 bool ShouldActivatePendingTree() const;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 bool can_start_; 302 bool can_start_;
299 bool can_draw_; 303 bool can_draw_;
300 bool has_pending_tree_; 304 bool has_pending_tree_;
301 bool pending_tree_is_ready_for_activation_; 305 bool pending_tree_is_ready_for_activation_;
302 bool active_tree_needs_first_draw_; 306 bool active_tree_needs_first_draw_;
303 bool did_create_and_initialize_first_output_surface_; 307 bool did_create_and_initialize_first_output_surface_;
304 bool smoothness_takes_priority_; 308 bool smoothness_takes_priority_;
305 bool skip_next_begin_main_frame_to_reduce_latency_; 309 bool skip_next_begin_main_frame_to_reduce_latency_;
306 bool skip_begin_main_frame_to_reduce_latency_; 310 bool skip_begin_main_frame_to_reduce_latency_;
307 bool continuous_painting_; 311 bool continuous_painting_;
312 bool children_need_begin_frames_;
308 313
309 private: 314 private:
310 DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine); 315 DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine);
311 }; 316 };
312 317
313 } // namespace cc 318 } // namespace cc
314 319
315 #endif // CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ 320 #endif // CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698