| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/worker_pool.h" | 5 #include "cc/base/worker_pool.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/debug/trace_event.h" | 8 #include "base/debug/trace_event.h" |
| 9 #include "base/stringprintf.h" | 9 #include "base/stringprintf.h" |
| 10 #include "base/synchronization/condition_variable.h" | 10 #include "base/synchronization/condition_variable.h" |
| 11 #include "base/threading/simple_thread.h" | 11 #include "base/threading/simple_thread.h" |
| 12 #include "cc/rendering_stats.h" | 12 #include "cc/rendering_stats.h" |
| 13 | 13 |
| 14 #if defined(OS_ANDROID) | 14 #if defined(OS_ANDROID) |
| 15 // TODO(epenner): Move thread priorities to base. (crbug.com/170549) | 15 // TODO(epenner): Move thread priorities to base. (crbug.com/170549) |
| (...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 600 TRACE_EVENT_INSTANT0("cc", "WorkerPool::RunCheapTasks check time"); | 600 TRACE_EVENT_INSTANT0("cc", "WorkerPool::RunCheapTasks check time"); |
| 601 CancelCheckForCompletedTasks(); | 601 CancelCheckForCompletedTasks(); |
| 602 DispatchCompletionCallbacks(); | 602 DispatchCompletionCallbacks(); |
| 603 // Schedule another check for completed tasks if not idle. | 603 // Schedule another check for completed tasks if not idle. |
| 604 if (!is_idle) | 604 if (!is_idle) |
| 605 ScheduleCheckForCompletedTasks(); | 605 ScheduleCheckForCompletedTasks(); |
| 606 } | 606 } |
| 607 } | 607 } |
| 608 | 608 |
| 609 } // namespace cc | 609 } // namespace cc |
| OLD | NEW |