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

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: WIP Created 6 years, 6 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 | « no previous file | cc/scheduler/scheduler.cc » ('j') | cc/trees/thread_proxy.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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 133
134 bool IsInsideAction(SchedulerStateMachine::Action action) { 134 bool IsInsideAction(SchedulerStateMachine::Action action) {
135 return inside_action_ == action; 135 return inside_action_ == action;
136 } 136 }
137 137
138 bool IsBeginMainFrameSent() const; 138 bool IsBeginMainFrameSent() const;
139 void SetContinuousPainting(bool continuous_painting) { 139 void SetContinuousPainting(bool continuous_painting) {
140 state_machine_.SetContinuousPainting(continuous_painting); 140 state_machine_.SetContinuousPainting(continuous_painting);
141 } 141 }
142 142
143 void SetDeferCommits(bool defer_commits);
144
143 protected: 145 protected:
144 class CC_EXPORT SyntheticBeginFrameSource : public TimeSourceClient { 146 class CC_EXPORT SyntheticBeginFrameSource : public TimeSourceClient {
145 public: 147 public:
146 SyntheticBeginFrameSource(Scheduler* scheduler, 148 SyntheticBeginFrameSource(Scheduler* scheduler,
147 base::SingleThreadTaskRunner* task_runner); 149 base::SingleThreadTaskRunner* task_runner);
148 virtual ~SyntheticBeginFrameSource(); 150 virtual ~SyntheticBeginFrameSource();
149 151
150 // Updates the phase and frequency of the timer. 152 // Updates the phase and frequency of the timer.
151 void CommitVSyncParameters(base::TimeTicks timebase, 153 void CommitVSyncParameters(base::TimeTicks timebase,
152 base::TimeDelta interval); 154 base::TimeDelta interval);
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 void SetupSyntheticBeginFrames(); 226 void SetupSyntheticBeginFrames();
225 227
226 base::WeakPtrFactory<Scheduler> weak_factory_; 228 base::WeakPtrFactory<Scheduler> weak_factory_;
227 229
228 DISALLOW_COPY_AND_ASSIGN(Scheduler); 230 DISALLOW_COPY_AND_ASSIGN(Scheduler);
229 }; 231 };
230 232
231 } // namespace cc 233 } // namespace cc
232 234
233 #endif // CC_SCHEDULER_SCHEDULER_H_ 235 #endif // CC_SCHEDULER_SCHEDULER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/scheduler/scheduler.cc » ('j') | cc/trees/thread_proxy.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698