| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_RASTER_WORKER_POOL_H_ | 5 #ifndef CC_RASTER_WORKER_POOL_H_ |
| 6 #define CC_RASTER_WORKER_POOL_H_ | 6 #define CC_RASTER_WORKER_POOL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 | 51 |
| 52 private: | 52 private: |
| 53 friend class RasterWorkerPool; | 53 friend class RasterWorkerPool; |
| 54 | 54 |
| 55 Thread* thread_; | 55 Thread* thread_; |
| 56 RenderingStats rendering_stats_; | 56 RenderingStats rendering_stats_; |
| 57 | 57 |
| 58 DISALLOW_COPY_AND_ASSIGN(Task); | 58 DISALLOW_COPY_AND_ASSIGN(Task); |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 virtual void Init() OVERRIDE; |
| 62 |
| 61 Thread(const std::string name); | 63 Thread(const std::string name); |
| 62 virtual ~Thread(); | 64 virtual ~Thread(); |
| 63 | 65 |
| 64 int num_pending_tasks() const { return num_pending_tasks_; } | 66 int num_pending_tasks() const { return num_pending_tasks_; } |
| 65 RenderingStats& rendering_stats() { return rendering_stats_; } | 67 RenderingStats& rendering_stats() { return rendering_stats_; } |
| 66 | 68 |
| 67 private: | 69 private: |
| 68 int num_pending_tasks_; | 70 int num_pending_tasks_; |
| 69 RenderingStats rendering_stats_; | 71 RenderingStats rendering_stats_; |
| 70 | 72 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 89 | 91 |
| 90 typedef std::vector<Thread*> ThreadVector; | 92 typedef std::vector<Thread*> ThreadVector; |
| 91 ThreadVector raster_threads_; | 93 ThreadVector raster_threads_; |
| 92 | 94 |
| 93 DISALLOW_COPY_AND_ASSIGN(RasterWorkerPool); | 95 DISALLOW_COPY_AND_ASSIGN(RasterWorkerPool); |
| 94 }; | 96 }; |
| 95 | 97 |
| 96 } // namespace cc | 98 } // namespace cc |
| 97 | 99 |
| 98 #endif // CC_RASTER_WORKER_POOL_H_ | 100 #endif // CC_RASTER_WORKER_POOL_H_ |
| OLD | NEW |