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

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

Issue 812543002: Update from https://crrev.com/308331 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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 | « cc/resources/video_resource_updater_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 <deque> 8 #include <deque>
9 #include <string> 9 #include <string>
10 10
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 bool PrepareTilesPending() const { 146 bool PrepareTilesPending() const {
147 return state_machine_.PrepareTilesPending(); 147 return state_machine_.PrepareTilesPending();
148 } 148 }
149 bool MainThreadIsInHighLatencyMode() const { 149 bool MainThreadIsInHighLatencyMode() const {
150 return state_machine_.MainThreadIsInHighLatencyMode(); 150 return state_machine_.MainThreadIsInHighLatencyMode();
151 } 151 }
152 bool BeginImplFrameDeadlinePending() const { 152 bool BeginImplFrameDeadlinePending() const {
153 return !begin_impl_frame_deadline_task_.IsCancelled(); 153 return !begin_impl_frame_deadline_task_.IsCancelled();
154 } 154 }
155 155
156 bool WillDrawIfNeeded() const;
157
158 base::TimeTicks AnticipatedDrawTime() const; 156 base::TimeTicks AnticipatedDrawTime() const;
159 157
160 void NotifyBeginMainFrameStarted(); 158 void NotifyBeginMainFrameStarted();
161 159
162 base::TimeTicks LastBeginImplFrameTime(); 160 base::TimeTicks LastBeginImplFrameTime();
163 161
164 scoped_refptr<base::debug::ConvertableToTraceFormat> AsValue() const; 162 scoped_refptr<base::debug::ConvertableToTraceFormat> AsValue() const;
165 void AsValueInto(base::debug::TracedValue* value) const override; 163 void AsValueInto(base::debug::TracedValue* value) const override;
166 164
167 void SetContinuousPainting(bool continuous_painting) { 165 void SetContinuousPainting(bool continuous_painting) {
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 251
254 friend class SchedulerFrameSourcesConstructor; 252 friend class SchedulerFrameSourcesConstructor;
255 friend class TestSchedulerFrameSourcesConstructor; 253 friend class TestSchedulerFrameSourcesConstructor;
256 254
257 DISALLOW_COPY_AND_ASSIGN(Scheduler); 255 DISALLOW_COPY_AND_ASSIGN(Scheduler);
258 }; 256 };
259 257
260 } // namespace cc 258 } // namespace cc
261 259
262 #endif // CC_SCHEDULER_SCHEDULER_H_ 260 #endif // CC_SCHEDULER_SCHEDULER_H_
OLDNEW
« no previous file with comments | « cc/resources/video_resource_updater_unittest.cc ('k') | cc/scheduler/scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698