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

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: Fix comment. 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
« no previous file with comments | « cc/layers/video_layer_impl.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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 void SetDeferCommits(bool defer_commits); 162 void SetDeferCommits(bool defer_commits);
163 163
164 scoped_refptr<base::trace_event::ConvertableToTraceFormat> AsValue() const; 164 scoped_refptr<base::trace_event::ConvertableToTraceFormat> AsValue() const;
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 void SetVideoNeedsBeginFrames(bool video_needs_begin_frames);
172 173
173 void SetAuthoritativeVSyncInterval(const base::TimeDelta& interval); 174 void SetAuthoritativeVSyncInterval(const base::TimeDelta& interval);
174 175
175 protected: 176 protected:
176 Scheduler(SchedulerClient* client, 177 Scheduler(SchedulerClient* client,
177 const SchedulerSettings& scheduler_settings, 178 const SchedulerSettings& scheduler_settings,
178 int layer_tree_host_id, 179 int layer_tree_host_id,
179 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, 180 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner,
180 scoped_ptr<BeginFrameSource> external_begin_frame_source, 181 scoped_ptr<BeginFrameSource> external_begin_frame_source,
181 SchedulerFrameSourcesConstructor* frame_sources_constructor); 182 SchedulerFrameSourcesConstructor* frame_sources_constructor);
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 253
253 friend class SchedulerFrameSourcesConstructor; 254 friend class SchedulerFrameSourcesConstructor;
254 friend class TestSchedulerFrameSourcesConstructor; 255 friend class TestSchedulerFrameSourcesConstructor;
255 256
256 DISALLOW_COPY_AND_ASSIGN(Scheduler); 257 DISALLOW_COPY_AND_ASSIGN(Scheduler);
257 }; 258 };
258 259
259 } // namespace cc 260 } // namespace cc
260 261
261 #endif // CC_SCHEDULER_SCHEDULER_H_ 262 #endif // CC_SCHEDULER_SCHEDULER_H_
OLDNEW
« no previous file with comments | « cc/layers/video_layer_impl.cc ('k') | cc/scheduler/scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698