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 "platform/scheduler/base/task_queue_manager.h" | 5 #include "platform/scheduler/base/task_queue_manager.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
11 #include "base/location.h" | 11 #include "base/location.h" |
12 #include "base/memory/ptr_util.h" | 12 #include "base/memory/ptr_util.h" |
13 #include "base/memory/ref_counted_memory.h" | 13 #include "base/memory/ref_counted_memory.h" |
| 14 #include "base/message_loop/message_loop.h" |
14 #include "base/run_loop.h" | 15 #include "base/run_loop.h" |
15 #include "base/single_thread_task_runner.h" | 16 #include "base/single_thread_task_runner.h" |
16 #include "base/test/simple_test_tick_clock.h" | 17 #include "base/test/simple_test_tick_clock.h" |
17 #include "base/test/trace_event_analyzer.h" | 18 #include "base/test/trace_event_analyzer.h" |
18 #include "base/threading/thread.h" | 19 #include "base/threading/thread.h" |
19 #include "base/threading/thread_task_runner_handle.h" | 20 #include "base/threading/thread_task_runner_handle.h" |
20 #include "base/trace_event/blame_context.h" | 21 #include "base/trace_event/blame_context.h" |
21 #include "base/trace_event/trace_buffer.h" | 22 #include "base/trace_event/trace_buffer.h" |
22 #include "cc/test/ordered_simple_task_runner.h" | 23 #include "cc/test/ordered_simple_task_runner.h" |
23 #include "platform/scheduler/base/real_time_domain.h" | 24 #include "platform/scheduler/base/real_time_domain.h" |
(...skipping 2922 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2946 manager_->RegisterTimeDomain(domain.get()); | 2947 manager_->RegisterTimeDomain(domain.get()); |
2947 runners_[0]->SetTimeDomain(domain.get()); | 2948 runners_[0]->SetTimeDomain(domain.get()); |
2948 | 2949 |
2949 // Tidy up. | 2950 // Tidy up. |
2950 runners_[0]->UnregisterTaskQueue(); | 2951 runners_[0]->UnregisterTaskQueue(); |
2951 manager_->UnregisterTimeDomain(domain.get()); | 2952 manager_->UnregisterTimeDomain(domain.get()); |
2952 } | 2953 } |
2953 | 2954 |
2954 } // namespace scheduler | 2955 } // namespace scheduler |
2955 } // namespace blink | 2956 } // namespace blink |
OLD | NEW |