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

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

Issue 1460923002: cc: CompositorTimingHistory throughput UMAs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@didDraw
Patch Set: Remove debug TRACE_EVENTS Created 5 years 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/scheduler/compositor_timing_history_unittest.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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 base::CancelableClosure begin_retro_frame_task_; 189 base::CancelableClosure begin_retro_frame_task_;
190 base::CancelableClosure begin_impl_frame_deadline_task_; 190 base::CancelableClosure begin_impl_frame_deadline_task_;
191 191
192 SchedulerStateMachine state_machine_; 192 SchedulerStateMachine state_machine_;
193 bool inside_process_scheduled_actions_; 193 bool inside_process_scheduled_actions_;
194 SchedulerStateMachine::Action inside_action_; 194 SchedulerStateMachine::Action inside_action_;
195 195
196 private: 196 private:
197 void ScheduleBeginImplFrameDeadline(); 197 void ScheduleBeginImplFrameDeadline();
198 void ScheduleBeginImplFrameDeadlineIfNeeded(); 198 void ScheduleBeginImplFrameDeadlineIfNeeded();
199 void BeginImplFrameNotExpectedSoon();
199 void SetupNextBeginFrameIfNeeded(); 200 void SetupNextBeginFrameIfNeeded();
200 void PostBeginRetroFrameIfNeeded(); 201 void PostBeginRetroFrameIfNeeded();
201 void DrawAndSwapIfPossible(); 202 void DrawAndSwapIfPossible();
202 void DrawAndSwapForced(); 203 void DrawAndSwapForced();
203 void ProcessScheduledActions(); 204 void ProcessScheduledActions();
204 void UpdateCompositorTimingHistoryRecordingEnabled(); 205 void UpdateCompositorTimingHistoryRecordingEnabled();
205 bool ShouldRecoverMainLatency(const BeginFrameArgs& args, 206 bool ShouldRecoverMainLatency(const BeginFrameArgs& args,
206 bool can_activate_before_deadline) const; 207 bool can_activate_before_deadline) const;
207 bool ShouldRecoverImplLatency(const BeginFrameArgs& args, 208 bool ShouldRecoverImplLatency(const BeginFrameArgs& args,
208 bool can_activate_before_deadline) const; 209 bool can_activate_before_deadline) const;
(...skipping 27 matching lines...) Expand all
236 } 237 }
237 238
238 base::WeakPtrFactory<Scheduler> weak_factory_; 239 base::WeakPtrFactory<Scheduler> weak_factory_;
239 240
240 DISALLOW_COPY_AND_ASSIGN(Scheduler); 241 DISALLOW_COPY_AND_ASSIGN(Scheduler);
241 }; 242 };
242 243
243 } // namespace cc 244 } // namespace cc
244 245
245 #endif // CC_SCHEDULER_SCHEDULER_H_ 246 #endif // CC_SCHEDULER_SCHEDULER_H_
OLDNEW
« no previous file with comments | « cc/scheduler/compositor_timing_history_unittest.cc ('k') | cc/scheduler/scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698