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/synchronous_task_graph_runner.h" | 5 #include "cc/raster/synchronous_task_graph_runner.h" |
6 | 6 |
| 7 #include <stdint.h> |
| 8 |
7 #include <algorithm> | 9 #include <algorithm> |
8 #include <utility> | 10 #include <utility> |
9 | 11 |
10 #include "base/threading/simple_thread.h" | 12 #include "base/threading/simple_thread.h" |
11 #include "base/threading/thread_restrictions.h" | 13 #include "base/threading/thread_restrictions.h" |
12 #include "base/trace_event/trace_event.h" | 14 #include "base/trace_event/trace_event.h" |
13 | 15 |
14 namespace cc { | 16 namespace cc { |
15 | 17 |
16 SynchronousTaskGraphRunner::SynchronousTaskGraphRunner() {} | 18 SynchronousTaskGraphRunner::SynchronousTaskGraphRunner() {} |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 task->WillRun(); | 88 task->WillRun(); |
87 task->RunOnWorkerThread(); | 89 task->RunOnWorkerThread(); |
88 task->DidRun(); | 90 task->DidRun(); |
89 | 91 |
90 work_queue_.CompleteTask(prioritized_task); | 92 work_queue_.CompleteTask(prioritized_task); |
91 | 93 |
92 return true; | 94 return true; |
93 } | 95 } |
94 | 96 |
95 } // namespace cc | 97 } // namespace cc |
OLD | NEW |