| 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/base/worker_pool.h" | 5 #include "cc/resources/worker_pool.h" |
| 6 | 6 |
| 7 #if defined(OS_ANDROID) | 7 #if defined(OS_ANDROID) |
| 8 // TODO(epenner): Move thread priorities to base. (crbug.com/170549) | 8 // TODO(epenner): Move thread priorities to base. (crbug.com/170549) |
| 9 #include <sys/resource.h> | 9 #include <sys/resource.h> |
| 10 #endif | 10 #endif |
| 11 | 11 |
| 12 #include <map> | 12 #include <map> |
| 13 | 13 |
| 14 #include "base/bind.h" | 14 #include "base/bind.h" |
| 15 #include "base/containers/hash_tables.h" | 15 #include "base/containers/hash_tables.h" |
| (...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 452 | 452 |
| 453 // static | 453 // static |
| 454 void WorkerPool::BuildTaskGraph( | 454 void WorkerPool::BuildTaskGraph( |
| 455 internal::WorkerPoolTask* root, TaskGraph* tasks) { | 455 internal::WorkerPoolTask* root, TaskGraph* tasks) { |
| 456 const unsigned kBasePriority = 0u; | 456 const unsigned kBasePriority = 0u; |
| 457 if (root) | 457 if (root) |
| 458 BuildTaskGraphRecursive(root, NULL, kBasePriority, tasks); | 458 BuildTaskGraphRecursive(root, NULL, kBasePriority, tasks); |
| 459 } | 459 } |
| 460 | 460 |
| 461 } // namespace cc | 461 } // namespace cc |
| OLD | NEW |