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

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

Issue 19106007: cc: Allow the main thread to cancel commits (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add more comments Created 7 years, 4 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/layers/texture_layer_unittest.cc ('k') | cc/scheduler/scheduler.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_H_ 5 #ifndef CC_SCHEDULER_SCHEDULER_H_
6 #define CC_SCHEDULER_SCHEDULER_H_ 6 #define CC_SCHEDULER_SCHEDULER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 79
80 void SetMainThreadNeedsLayerTextures(); 80 void SetMainThreadNeedsLayerTextures();
81 81
82 // Like SetNeedsRedraw(), but ensures the draw will definitely happen even if 82 // Like SetNeedsRedraw(), but ensures the draw will definitely happen even if
83 // we are not visible. 83 // we are not visible.
84 void SetNeedsForcedRedraw(); 84 void SetNeedsForcedRedraw();
85 85
86 void DidSwapUseIncompleteTile(); 86 void DidSwapUseIncompleteTile();
87 87
88 void FinishCommit(); 88 void FinishCommit();
89 void BeginFrameAbortedByMainThread(); 89 void BeginFrameAbortedByMainThread(bool did_handle);
90 90
91 void DidLoseOutputSurface(); 91 void DidLoseOutputSurface();
92 void DidCreateAndInitializeOutputSurface(); 92 void DidCreateAndInitializeOutputSurface();
93 bool HasInitializedOutputSurface() const { 93 bool HasInitializedOutputSurface() const {
94 return state_machine_.HasInitializedOutputSurface(); 94 return state_machine_.HasInitializedOutputSurface();
95 } 95 }
96 96
97 bool CommitPending() const { return state_machine_.CommitPending(); } 97 bool CommitPending() const { return state_machine_.CommitPending(); }
98 bool RedrawPending() const { return state_machine_.RedrawPending(); } 98 bool RedrawPending() const { return state_machine_.RedrawPending(); }
99 99
(...skipping 29 matching lines...) Expand all
129 129
130 SchedulerStateMachine state_machine_; 130 SchedulerStateMachine state_machine_;
131 bool inside_process_scheduled_actions_; 131 bool inside_process_scheduled_actions_;
132 132
133 DISALLOW_COPY_AND_ASSIGN(Scheduler); 133 DISALLOW_COPY_AND_ASSIGN(Scheduler);
134 }; 134 };
135 135
136 } // namespace cc 136 } // namespace cc
137 137
138 #endif // CC_SCHEDULER_SCHEDULER_H_ 138 #endif // CC_SCHEDULER_SCHEDULER_H_
OLDNEW
« no previous file with comments | « cc/layers/texture_layer_unittest.cc ('k') | cc/scheduler/scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698