OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "content/renderer/scheduler/renderer_scheduler_impl.h" | 5 #include "content/renderer/scheduler/renderer_scheduler_impl.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/debug/trace_event.h" | |
9 #include "base/debug/trace_event_argument.h" | |
10 #include "base/message_loop/message_loop_proxy.h" | 8 #include "base/message_loop/message_loop_proxy.h" |
| 9 #include "base/trace_event/trace_event.h" |
| 10 #include "base/trace_event/trace_event_argument.h" |
11 #include "cc/output/begin_frame_args.h" | 11 #include "cc/output/begin_frame_args.h" |
12 #include "content/renderer/scheduler/renderer_task_queue_selector.h" | 12 #include "content/renderer/scheduler/renderer_task_queue_selector.h" |
13 #include "ui/gfx/frame_time.h" | 13 #include "ui/gfx/frame_time.h" |
14 | 14 |
15 namespace content { | 15 namespace content { |
16 | 16 |
17 RendererSchedulerImpl::RendererSchedulerImpl( | 17 RendererSchedulerImpl::RendererSchedulerImpl( |
18 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner) | 18 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner) |
19 : renderer_task_queue_selector_(new RendererTaskQueueSelector()), | 19 : renderer_task_queue_selector_(new RendererTaskQueueSelector()), |
20 task_queue_manager_( | 20 task_queue_manager_( |
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 state->SetDouble("last_input_time", | 333 state->SetDouble("last_input_time", |
334 (last_input_time_ - base::TimeTicks()).InMillisecondsF()); | 334 (last_input_time_ - base::TimeTicks()).InMillisecondsF()); |
335 state->SetDouble( | 335 state->SetDouble( |
336 "estimated_next_frame_begin", | 336 "estimated_next_frame_begin", |
337 (estimated_next_frame_begin_ - base::TimeTicks()).InMillisecondsF()); | 337 (estimated_next_frame_begin_ - base::TimeTicks()).InMillisecondsF()); |
338 | 338 |
339 return state; | 339 return state; |
340 } | 340 } |
341 | 341 |
342 } // namespace content | 342 } // namespace content |
OLD | NEW |