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

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 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
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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 } 154 }
155 155
156 bool WillDrawIfNeeded() const; 156 bool WillDrawIfNeeded() const;
157 157
158 base::TimeTicks AnticipatedDrawTime() const; 158 base::TimeTicks AnticipatedDrawTime() const;
159 159
160 void NotifyBeginMainFrameStarted(); 160 void NotifyBeginMainFrameStarted();
161 161
162 base::TimeTicks LastBeginImplFrameTime(); 162 base::TimeTicks LastBeginImplFrameTime();
163 163
164 void SetDeferCommits(bool defer_commits);
165
164 scoped_refptr<base::debug::ConvertableToTraceFormat> AsValue() const; 166 scoped_refptr<base::debug::ConvertableToTraceFormat> AsValue() const;
165 void AsValueInto(base::debug::TracedValue* value) const override; 167 void AsValueInto(base::debug::TracedValue* value) const override;
166 168
167 void SetContinuousPainting(bool continuous_painting) { 169 void SetContinuousPainting(bool continuous_painting) {
168 state_machine_.SetContinuousPainting(continuous_painting); 170 state_machine_.SetContinuousPainting(continuous_painting);
169 } 171 }
170 172
171 void SetChildrenNeedBeginFrames(bool children_need_begin_frames); 173 void SetChildrenNeedBeginFrames(bool children_need_begin_frames);
172 174
173 protected: 175 protected:
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 255
254 friend class SchedulerFrameSourcesConstructor; 256 friend class SchedulerFrameSourcesConstructor;
255 friend class TestSchedulerFrameSourcesConstructor; 257 friend class TestSchedulerFrameSourcesConstructor;
256 258
257 DISALLOW_COPY_AND_ASSIGN(Scheduler); 259 DISALLOW_COPY_AND_ASSIGN(Scheduler);
258 }; 260 };
259 261
260 } // namespace cc 262 } // namespace cc
261 263
262 #endif // CC_SCHEDULER_SCHEDULER_H_ 264 #endif // CC_SCHEDULER_SCHEDULER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/scheduler/scheduler.cc » ('j') | cc/scheduler/scheduler_state_machine_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698