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

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;
240 bool ProactiveBeginFrameWanted() const; 243 bool ProactiveBeginFrameWanted() const;
241 244
242 // True if we need to force activations to make forward progress. 245 // True if we need to force activations to make forward progress.
243 bool PendingActivationsShouldBeForced() const; 246 bool PendingActivationsShouldBeForced() const;
244 247
245 bool ShouldAnimate() const; 248 bool ShouldAnimate() const;
246 bool ShouldBeginOutputSurfaceCreation() const; 249 bool ShouldBeginOutputSurfaceCreation() const;
247 bool ShouldDrawForced() const; 250 bool ShouldDrawForced() const;
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 bool can_start_; 301 bool can_start_;
299 bool can_draw_; 302 bool can_draw_;
300 bool has_pending_tree_; 303 bool has_pending_tree_;
301 bool pending_tree_is_ready_for_activation_; 304 bool pending_tree_is_ready_for_activation_;
302 bool active_tree_needs_first_draw_; 305 bool active_tree_needs_first_draw_;
303 bool did_create_and_initialize_first_output_surface_; 306 bool did_create_and_initialize_first_output_surface_;
304 bool smoothness_takes_priority_; 307 bool smoothness_takes_priority_;
305 bool skip_next_begin_main_frame_to_reduce_latency_; 308 bool skip_next_begin_main_frame_to_reduce_latency_;
306 bool skip_begin_main_frame_to_reduce_latency_; 309 bool skip_begin_main_frame_to_reduce_latency_;
307 bool continuous_painting_; 310 bool continuous_painting_;
311 bool children_need_begin_frames_;
308 312
309 private: 313 private:
310 DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine); 314 DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine);
311 }; 315 };
312 316
313 } // namespace cc 317 } // namespace cc
314 318
315 #endif // CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ 319 #endif // CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698