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

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

Issue 1781663004: Allow null begin frame sources in cc::Scheduler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scheduler_change_begin_frame_source
Patch Set: Created 4 years, 9 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 | « no previous file | 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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 155
156 // Virtual for testing. 156 // Virtual for testing.
157 virtual base::TimeTicks Now() const; 157 virtual base::TimeTicks Now() const;
158 158
159 const SchedulerSettings settings_; 159 const SchedulerSettings settings_;
160 // Not owned. 160 // Not owned.
161 SchedulerClient* client_; 161 SchedulerClient* client_;
162 int layer_tree_host_id_; 162 int layer_tree_host_id_;
163 base::SingleThreadTaskRunner* task_runner_; 163 base::SingleThreadTaskRunner* task_runner_;
164 164
165 // Not owned. 165 // Not owned. May be null.
166 BeginFrameSource* begin_frame_source_; 166 BeginFrameSource* begin_frame_source_;
167 bool observing_begin_frame_source_; 167 bool observing_begin_frame_source_;
168 168
169 scoped_ptr<CompositorTimingHistory> compositor_timing_history_; 169 scoped_ptr<CompositorTimingHistory> compositor_timing_history_;
170 base::TimeDelta estimated_parent_draw_time_; 170 base::TimeDelta estimated_parent_draw_time_;
171 171
172 std::deque<BeginFrameArgs> begin_retro_frame_args_; 172 std::deque<BeginFrameArgs> begin_retro_frame_args_;
173 SchedulerStateMachine::BeginImplFrameDeadlineMode 173 SchedulerStateMachine::BeginImplFrameDeadlineMode
174 begin_impl_frame_deadline_mode_; 174 begin_impl_frame_deadline_mode_;
175 BeginFrameTracker begin_impl_frame_tracker_; 175 BeginFrameTracker begin_impl_frame_tracker_;
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 } 220 }
221 221
222 base::WeakPtrFactory<Scheduler> weak_factory_; 222 base::WeakPtrFactory<Scheduler> weak_factory_;
223 223
224 DISALLOW_COPY_AND_ASSIGN(Scheduler); 224 DISALLOW_COPY_AND_ASSIGN(Scheduler);
225 }; 225 };
226 226
227 } // namespace cc 227 } // namespace cc
228 228
229 #endif // CC_SCHEDULER_SCHEDULER_H_ 229 #endif // CC_SCHEDULER_SCHEDULER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/scheduler/scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698