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

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

Issue 792803008: cc: Split out BeginFrame needed verse proactive for commits. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase onto master. Created 5 years, 8 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 | « no previous file | cc/scheduler/scheduler_state_machine.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 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 // TODO(zmo): This is temporary for debugging crbug.com/393331. 248 // TODO(zmo): This is temporary for debugging crbug.com/393331.
249 // We should remove it afterwards. 249 // We should remove it afterwards.
250 std::string GetStatesForDebugging() const; 250 std::string GetStatesForDebugging() const;
251 251
252 void SetChildrenNeedBeginFrames(bool children_need_begin_frames); 252 void SetChildrenNeedBeginFrames(bool children_need_begin_frames);
253 bool children_need_begin_frames() const { 253 bool children_need_begin_frames() const {
254 return children_need_begin_frames_; 254 return children_need_begin_frames_;
255 } 255 }
256 256
257 protected: 257 protected:
258 bool BeginFrameNeededToAnimateOrDraw() const; 258 bool BeginFrameRequiredForAction() const;
259 bool BeginFrameNeededForChildren() const; 259 bool BeginFrameRequiredForChildren() const;
260 bool ProactiveBeginFrameWanted() const; 260 bool ProactiveBeginFrameWanted() const;
261 261
262 bool ShouldTriggerBeginImplFrameDeadlineImmediately() const; 262 bool ShouldTriggerBeginImplFrameDeadlineImmediately() const;
263 263
264 // True if we need to force activations to make forward progress. 264 // True if we need to force activations to make forward progress.
265 bool PendingActivationsShouldBeForced() const; 265 bool PendingActivationsShouldBeForced() const;
266 266
267 bool ShouldAnimate() const; 267 bool ShouldAnimate() const;
268 bool ShouldBeginOutputSurfaceCreation() const; 268 bool ShouldBeginOutputSurfaceCreation() const;
269 bool ShouldDraw() const; 269 bool ShouldDraw() const;
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 bool did_request_swap_in_last_frame_; 335 bool did_request_swap_in_last_frame_;
336 bool did_perform_swap_in_last_draw_; 336 bool did_perform_swap_in_last_draw_;
337 337
338 private: 338 private:
339 DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine); 339 DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine);
340 }; 340 };
341 341
342 } // namespace cc 342 } // namespace cc
343 343
344 #endif // CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ 344 #endif // CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_
OLDNEW
« no previous file with comments | « no previous file | cc/scheduler/scheduler_state_machine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698