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

Side by Side Diff: cc/scheduler/scheduler.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, 1 month 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 | « no previous file | cc/scheduler/scheduler.cc » ('j') | cc/scheduler/scheduler_state_machine.cc » ('J')
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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 } 152 }
153 153
154 bool WillDrawIfNeeded() const; 154 bool WillDrawIfNeeded() const;
155 155
156 base::TimeTicks AnticipatedDrawTime() const; 156 base::TimeTicks AnticipatedDrawTime() const;
157 157
158 void NotifyBeginMainFrameStarted(); 158 void NotifyBeginMainFrameStarted();
159 159
160 base::TimeTicks LastBeginImplFrameTime(); 160 base::TimeTicks LastBeginImplFrameTime();
161 161
162 void SetDeferCommits(bool defer_commits);
163
162 scoped_refptr<base::debug::ConvertableToTraceFormat> AsValue() const; 164 scoped_refptr<base::debug::ConvertableToTraceFormat> AsValue() const;
163 void AsValueInto(base::debug::TracedValue* value) const override; 165 void AsValueInto(base::debug::TracedValue* value) const override;
164 166
165 void SetContinuousPainting(bool continuous_painting) { 167 void SetContinuousPainting(bool continuous_painting) {
166 state_machine_.SetContinuousPainting(continuous_painting); 168 state_machine_.SetContinuousPainting(continuous_painting);
167 } 169 }
168 170
169 // BeginFrameObserverMixin 171 // BeginFrameObserverMixin
170 bool OnBeginFrameMixInDelegate(const BeginFrameArgs& args) override; 172 bool OnBeginFrameMixInDelegate(const BeginFrameArgs& args) override;
171 173
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 254
253 friend class SchedulerFrameSourcesConstructor; 255 friend class SchedulerFrameSourcesConstructor;
254 friend class TestSchedulerFrameSourcesConstructor; 256 friend class TestSchedulerFrameSourcesConstructor;
255 257
256 DISALLOW_COPY_AND_ASSIGN(Scheduler); 258 DISALLOW_COPY_AND_ASSIGN(Scheduler);
257 }; 259 };
258 260
259 } // namespace cc 261 } // namespace cc
260 262
261 #endif // CC_SCHEDULER_SCHEDULER_H_ 263 #endif // CC_SCHEDULER_SCHEDULER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/scheduler/scheduler.cc » ('j') | cc/scheduler/scheduler_state_machine.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698