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

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

Issue 1039533002: cc: Add support for sending BeginFrames for video. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@misc_video_refactoring
Patch Set: Remove visibility updates. Created 5 years, 8 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
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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 void AsValueInto(base::trace_event::TracedValue* value) const override; 165 void AsValueInto(base::trace_event::TracedValue* value) const override;
166 166
167 void SetContinuousPainting(bool continuous_painting) { 167 void SetContinuousPainting(bool continuous_painting) {
168 state_machine_.SetContinuousPainting(continuous_painting); 168 state_machine_.SetContinuousPainting(continuous_painting);
169 } 169 }
170 170
171 void SetChildrenNeedBeginFrames(bool children_need_begin_frames); 171 void SetChildrenNeedBeginFrames(bool children_need_begin_frames);
172 172
173 void SetAuthoritativeVSyncInterval(const base::TimeDelta& interval); 173 void SetAuthoritativeVSyncInterval(const base::TimeDelta& interval);
174 174
175 void SetVideoNeedsBeginFrames(bool video_needs_begin_frames);
brianderson 2015/04/16 01:42:23 Group with SetChildrenNeedBeginFrames?
sunnyps 2015/04/16 20:56:11 Done.
176
175 protected: 177 protected:
176 Scheduler(SchedulerClient* client, 178 Scheduler(SchedulerClient* client,
177 const SchedulerSettings& scheduler_settings, 179 const SchedulerSettings& scheduler_settings,
178 int layer_tree_host_id, 180 int layer_tree_host_id,
179 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, 181 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner,
180 scoped_ptr<BeginFrameSource> external_begin_frame_source, 182 scoped_ptr<BeginFrameSource> external_begin_frame_source,
181 SchedulerFrameSourcesConstructor* frame_sources_constructor); 183 SchedulerFrameSourcesConstructor* frame_sources_constructor);
182 184
183 // virtual for testing - Don't call these in the constructor or 185 // virtual for testing - Don't call these in the constructor or
184 // destructor! 186 // destructor!
(...skipping 67 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

Powered by Google App Engine
This is Rietveld 408576698