| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_BITMAP_TILE_TASK_WORKER_POOL_H_ | 5 #ifndef CC_RASTER_BITMAP_TILE_TASK_WORKER_POOL_H_ |
| 6 #define CC_RASTER_BITMAP_TILE_TASK_WORKER_POOL_H_ | 6 #define CC_RASTER_BITMAP_TILE_TASK_WORKER_POOL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 uint64_t resource_content_id, | 48 uint64_t resource_content_id, |
| 49 uint64_t previous_content_id) override; | 49 uint64_t previous_content_id) override; |
| 50 void ReleaseBufferForRaster(scoped_ptr<RasterBuffer> buffer) override; | 50 void ReleaseBufferForRaster(scoped_ptr<RasterBuffer> buffer) override; |
| 51 | 51 |
| 52 protected: | 52 protected: |
| 53 BitmapTileTaskWorkerPool(base::SequencedTaskRunner* task_runner, | 53 BitmapTileTaskWorkerPool(base::SequencedTaskRunner* task_runner, |
| 54 TaskGraphRunner* task_graph_runner, | 54 TaskGraphRunner* task_graph_runner, |
| 55 ResourceProvider* resource_provider); | 55 ResourceProvider* resource_provider); |
| 56 | 56 |
| 57 private: | 57 private: |
| 58 scoped_refptr<base::trace_event::ConvertableToTraceFormat> StateAsValue() | 58 scoped_ptr<base::trace_event::ConvertableToTraceFormat> StateAsValue() const; |
| 59 const; | |
| 60 | 59 |
| 61 scoped_refptr<base::SequencedTaskRunner> task_runner_; | 60 scoped_refptr<base::SequencedTaskRunner> task_runner_; |
| 62 TaskGraphRunner* task_graph_runner_; | 61 TaskGraphRunner* task_graph_runner_; |
| 63 const NamespaceToken namespace_token_; | 62 const NamespaceToken namespace_token_; |
| 64 ResourceProvider* resource_provider_; | 63 ResourceProvider* resource_provider_; |
| 65 | 64 |
| 66 Task::Vector completed_tasks_; | 65 Task::Vector completed_tasks_; |
| 67 | 66 |
| 68 DISALLOW_COPY_AND_ASSIGN(BitmapTileTaskWorkerPool); | 67 DISALLOW_COPY_AND_ASSIGN(BitmapTileTaskWorkerPool); |
| 69 }; | 68 }; |
| 70 | 69 |
| 71 } // namespace cc | 70 } // namespace cc |
| 72 | 71 |
| 73 #endif // CC_RASTER_BITMAP_TILE_TASK_WORKER_POOL_H_ | 72 #endif // CC_RASTER_BITMAP_TILE_TASK_WORKER_POOL_H_ |
| OLD | NEW |