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

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

Issue 25494009: cc: Fix disabled vsync state freezing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Now with test, and formatted Created 7 years, 2 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
« no previous file with comments | « cc/scheduler/scheduler.cc ('k') | 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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 216
217 bool has_pending_tree() const { return has_pending_tree_; } 217 bool has_pending_tree() const { return has_pending_tree_; }
218 218
219 void DidLoseOutputSurface(); 219 void DidLoseOutputSurface();
220 void DidCreateAndInitializeOutputSurface(); 220 void DidCreateAndInitializeOutputSurface();
221 bool HasInitializedOutputSurface() const; 221 bool HasInitializedOutputSurface() const;
222 222
223 // True if we need to abort draws to make forward progress. 223 // True if we need to abort draws to make forward progress.
224 bool PendingDrawsShouldBeAborted() const; 224 bool PendingDrawsShouldBeAborted() const;
225 225
226 bool SupportsProactiveBeginFrame() const;
227
226 protected: 228 protected:
227 bool BeginFrameNeededToDrawByImplThread() const; 229 bool BeginFrameNeededToDrawByImplThread() const;
228 bool ProactiveBeginFrameWantedByImplThread() const; 230 bool ProactiveBeginFrameWantedByImplThread() const;
229 231
230 // True if we need to force activations to make forward progress. 232 // True if we need to force activations to make forward progress.
231 bool PendingActivationsShouldBeForced() const; 233 bool PendingActivationsShouldBeForced() const;
232 234
233 bool ShouldBeginOutputSurfaceCreation() const; 235 bool ShouldBeginOutputSurfaceCreation() const;
234 bool ShouldDrawForced() const; 236 bool ShouldDrawForced() const;
235 bool ShouldDraw() const; 237 bool ShouldDraw() const;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 bool draw_if_possible_failed_; 285 bool draw_if_possible_failed_;
284 bool did_create_and_initialize_first_output_surface_; 286 bool did_create_and_initialize_first_output_surface_;
285 287
286 private: 288 private:
287 DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine); 289 DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine);
288 }; 290 };
289 291
290 } // namespace cc 292 } // namespace cc
291 293
292 #endif // CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ 294 #endif // CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_
OLDNEW
« no previous file with comments | « cc/scheduler/scheduler.cc ('k') | cc/scheduler/scheduler_state_machine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698