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

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

Issue 337693005: cc: Control defer_commits logic by Scheduler (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 223
224 // True if we need to abort draws to make forward progress. 224 // True if we need to abort draws to make forward progress.
225 bool PendingDrawsShouldBeAborted() const; 225 bool PendingDrawsShouldBeAborted() const;
226 226
227 bool SupportsProactiveBeginFrame() const; 227 bool SupportsProactiveBeginFrame() const;
228 228
229 void SetContinuousPainting(bool continuous_painting) { 229 void SetContinuousPainting(bool continuous_painting) {
230 continuous_painting_ = continuous_painting; 230 continuous_painting_ = continuous_painting;
231 } 231 }
232 232
233 void SetDeferCommits(bool defer_commits);
234
233 protected: 235 protected:
234 bool BeginFrameNeededToAnimateOrDraw() const; 236 bool BeginFrameNeededToAnimateOrDraw() const;
235 bool ProactiveBeginFrameWanted() const; 237 bool ProactiveBeginFrameWanted() const;
236 238
237 // True if we need to force activations to make forward progress. 239 // True if we need to force activations to make forward progress.
238 bool PendingActivationsShouldBeForced() const; 240 bool PendingActivationsShouldBeForced() const;
239 241
240 bool ShouldAnimate() const; 242 bool ShouldAnimate() const;
241 bool ShouldBeginOutputSurfaceCreation() const; 243 bool ShouldBeginOutputSurfaceCreation() const;
242 bool ShouldDrawForced() const; 244 bool ShouldDrawForced() const;
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 bool can_start_; 295 bool can_start_;
294 bool can_draw_; 296 bool can_draw_;
295 bool has_pending_tree_; 297 bool has_pending_tree_;
296 bool pending_tree_is_ready_for_activation_; 298 bool pending_tree_is_ready_for_activation_;
297 bool active_tree_needs_first_draw_; 299 bool active_tree_needs_first_draw_;
298 bool did_create_and_initialize_first_output_surface_; 300 bool did_create_and_initialize_first_output_surface_;
299 bool smoothness_takes_priority_; 301 bool smoothness_takes_priority_;
300 bool skip_next_begin_main_frame_to_reduce_latency_; 302 bool skip_next_begin_main_frame_to_reduce_latency_;
301 bool skip_begin_main_frame_to_reduce_latency_; 303 bool skip_begin_main_frame_to_reduce_latency_;
302 bool continuous_painting_; 304 bool continuous_painting_;
305 bool defer_commits_;
303 306
304 private: 307 private:
305 DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine); 308 DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine);
306 }; 309 };
307 310
308 } // namespace cc 311 } // namespace cc
309 312
310 #endif // CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ 313 #endif // CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698