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 #ifndef CC_WORKER_POOL_H_ | 5 #ifndef CC_BASE_WORKER_POOL_H_ |
6 #define CC_WORKER_POOL_H_ | 6 #define CC_BASE_WORKER_POOL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/cancelable_callback.h" | 10 #include "base/cancelable_callback.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
13 #include "base/message_loop.h" | 13 #include "base/message_loop.h" |
14 #include "cc/cc_export.h" | 14 #include "cc/base/cc_export.h" |
15 #include "cc/scoped_ptr_deque.h" | 15 #include "cc/base/scoped_ptr_deque.h" |
16 | 16 |
17 namespace cc { | 17 namespace cc { |
18 struct RenderingStats; | 18 struct RenderingStats; |
19 | 19 |
20 namespace internal { | 20 namespace internal { |
21 | 21 |
22 class WorkerPoolTask { | 22 class WorkerPoolTask { |
23 public: | 23 public: |
24 virtual ~WorkerPoolTask(); | 24 virtual ~WorkerPoolTask(); |
25 | 25 |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 ScopedPtrDeque<internal::WorkerPoolTask> completed_tasks_; | 121 ScopedPtrDeque<internal::WorkerPoolTask> completed_tasks_; |
122 | 122 |
123 // Hide the gory details of the worker pool in |inner_|. | 123 // Hide the gory details of the worker pool in |inner_|. |
124 const scoped_ptr<Inner> inner_; | 124 const scoped_ptr<Inner> inner_; |
125 | 125 |
126 DISALLOW_COPY_AND_ASSIGN(WorkerPool); | 126 DISALLOW_COPY_AND_ASSIGN(WorkerPool); |
127 }; | 127 }; |
128 | 128 |
129 } // namespace cc | 129 } // namespace cc |
130 | 130 |
131 #endif // CC_WORKER_POOL_H_ | 131 #endif // CC_BASE_WORKER_POOL_H_ |
OLD | NEW |