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

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

Issue 18804005: add missing headers in cc/* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add more missing includes Created 7 years, 5 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/scheduler/delay_based_time_source.cc ('k') | cc/scheduler/rate_limiter.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 #include "cc/scheduler/frame_rate_controller.h" 5 #include "cc/scheduler/frame_rate_controller.h"
6 6
7 #include "base/bind.h"
7 #include "base/debug/trace_event.h" 8 #include "base/debug/trace_event.h"
8 #include "base/location.h" 9 #include "base/location.h"
9 #include "base/logging.h" 10 #include "base/logging.h"
10 #include "base/single_thread_task_runner.h" 11 #include "base/single_thread_task_runner.h"
11 #include "cc/scheduler/delay_based_time_source.h" 12 #include "cc/scheduler/delay_based_time_source.h"
12 #include "cc/scheduler/time_source.h" 13 #include "cc/scheduler/time_source.h"
13 14
14 namespace cc { 15 namespace cc {
15 16
16 class FrameRateControllerTimeSourceAdapter : public TimeSourceClient { 17 class FrameRateControllerTimeSourceAdapter : public TimeSourceClient {
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 } 164 }
164 165
165 base::TimeTicks FrameRateController::LastTickTime() { 166 base::TimeTicks FrameRateController::LastTickTime() {
166 if (is_time_source_throttling_) 167 if (is_time_source_throttling_)
167 return time_source_->LastTickTime(); 168 return time_source_->LastTickTime();
168 169
169 return base::TimeTicks::Now(); 170 return base::TimeTicks::Now();
170 } 171 }
171 172
172 } // namespace cc 173 } // namespace cc
OLDNEW
« no previous file with comments | « cc/scheduler/delay_based_time_source.cc ('k') | cc/scheduler/rate_limiter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698