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 "cc/raster/single_thread_task_graph_runner.h" | 5 #include "cc/raster/single_thread_task_graph_runner.h" |
6 | 6 |
| 7 #include <stdint.h> |
| 8 |
7 #include <string> | 9 #include <string> |
8 | 10 |
9 #include "base/threading/simple_thread.h" | 11 #include "base/threading/simple_thread.h" |
10 #include "base/threading/thread_restrictions.h" | 12 #include "base/threading/thread_restrictions.h" |
11 #include "base/trace_event/trace_event.h" | 13 #include "base/trace_event/trace_event.h" |
12 | 14 |
13 namespace cc { | 15 namespace cc { |
14 | 16 |
15 SingleThreadTaskGraphRunner::SingleThreadTaskGraphRunner() | 17 SingleThreadTaskGraphRunner::SingleThreadTaskGraphRunner() |
16 : lock_(), | 18 : lock_(), |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 | 163 |
162 // If namespace has finished running all tasks, wake up origin thread. | 164 // If namespace has finished running all tasks, wake up origin thread. |
163 if (work_queue_.HasFinishedRunningTasksInNamespace( | 165 if (work_queue_.HasFinishedRunningTasksInNamespace( |
164 prioritized_task.task_namespace)) | 166 prioritized_task.task_namespace)) |
165 has_namespaces_with_finished_running_tasks_cv_.Signal(); | 167 has_namespaces_with_finished_running_tasks_cv_.Signal(); |
166 | 168 |
167 return true; | 169 return true; |
168 } | 170 } |
169 | 171 |
170 } // namespace cc | 172 } // namespace cc |
OLD | NEW |