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

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

Issue 1101603003: HACK: Drop frame rate of Renderer. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « 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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 const SchedulerSettings& scheduler_settings, 178 const SchedulerSettings& scheduler_settings,
179 int layer_tree_host_id, 179 int layer_tree_host_id,
180 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, 180 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner,
181 scoped_ptr<BeginFrameSource> external_begin_frame_source, 181 scoped_ptr<BeginFrameSource> external_begin_frame_source,
182 SchedulerFrameSourcesConstructor* frame_sources_constructor); 182 SchedulerFrameSourcesConstructor* frame_sources_constructor);
183 183
184 // virtual for testing - Don't call these in the constructor or 184 // virtual for testing - Don't call these in the constructor or
185 // destructor! 185 // destructor!
186 virtual base::TimeTicks Now() const; 186 virtual base::TimeTicks Now() const;
187 187
188 int begin_frame_count_;
188 scoped_ptr<BeginFrameSourceMultiplexer> frame_source_; 189 scoped_ptr<BeginFrameSourceMultiplexer> frame_source_;
189 BeginFrameSource* primary_frame_source_; 190 BeginFrameSource* primary_frame_source_;
190 BeginFrameSource* unthrottled_frame_source_; 191 BeginFrameSource* unthrottled_frame_source_;
191 192
192 // Storage when frame sources are internal 193 // Storage when frame sources are internal
193 scoped_ptr<BeginFrameSource> primary_frame_source_internal_; 194 scoped_ptr<BeginFrameSource> primary_frame_source_internal_;
194 scoped_ptr<BeginFrameSource> unthrottled_frame_source_internal_; 195 scoped_ptr<BeginFrameSource> unthrottled_frame_source_internal_;
195 196
196 VSyncParameterObserver* vsync_observer_; 197 VSyncParameterObserver* vsync_observer_;
197 base::TimeDelta authoritative_vsync_interval_; 198 base::TimeDelta authoritative_vsync_interval_;
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 254
254 friend class SchedulerFrameSourcesConstructor; 255 friend class SchedulerFrameSourcesConstructor;
255 friend class TestSchedulerFrameSourcesConstructor; 256 friend class TestSchedulerFrameSourcesConstructor;
256 257
257 DISALLOW_COPY_AND_ASSIGN(Scheduler); 258 DISALLOW_COPY_AND_ASSIGN(Scheduler);
258 }; 259 };
259 260
260 } // namespace cc 261 } // namespace cc
261 262
262 #endif // CC_SCHEDULER_SCHEDULER_H_ 263 #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