OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "components/scheduler/child/task_queue_impl.h" | 5 #include "components/scheduler/base/task_queue_impl.h" |
6 | 6 |
7 #include "components/scheduler/child/task_queue_manager.h" | 7 #include "components/scheduler/base/task_queue_manager.h" |
8 | 8 |
9 namespace scheduler { | 9 namespace scheduler { |
10 namespace internal { | 10 namespace internal { |
11 | 11 |
12 TaskQueueImpl::TaskQueueImpl( | 12 TaskQueueImpl::TaskQueueImpl( |
13 TaskQueueManager* task_queue_manager, | 13 TaskQueueManager* task_queue_manager, |
14 const Spec& spec, | 14 const Spec& spec, |
15 const char* disabled_by_default_tracing_category, | 15 const char* disabled_by_default_tracing_category, |
16 const char* disabled_by_default_verbose_tracing_category) | 16 const char* disabled_by_default_verbose_tracing_category) |
17 : thread_id_(base::PlatformThread::CurrentId()), | 17 : thread_id_(base::PlatformThread::CurrentId()), |
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
495 state->SetBoolean("nestable", task.nestable); | 495 state->SetBoolean("nestable", task.nestable); |
496 state->SetBoolean("is_high_res", task.is_high_res); | 496 state->SetBoolean("is_high_res", task.is_high_res); |
497 state->SetDouble( | 497 state->SetDouble( |
498 "delayed_run_time", | 498 "delayed_run_time", |
499 (task.delayed_run_time - base::TimeTicks()).InMicroseconds() / 1000.0L); | 499 (task.delayed_run_time - base::TimeTicks()).InMicroseconds() / 1000.0L); |
500 state->EndDictionary(); | 500 state->EndDictionary(); |
501 } | 501 } |
502 | 502 |
503 } // namespace internal | 503 } // namespace internal |
504 } // namespace scheduler | 504 } // namespace scheduler |
OLD | NEW |