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_RESOURCES_BITMAP_TILE_TASK_WORKER_POOL_H_ | 5 #ifndef CC_RESOURCES_BITMAP_TILE_TASK_WORKER_POOL_H_ |
6 #define CC_RESOURCES_BITMAP_TILE_TASK_WORKER_POOL_H_ | 6 #define CC_RESOURCES_BITMAP_TILE_TASK_WORKER_POOL_H_ |
7 | 7 |
8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "cc/resources/tile_task_runner.h" | 10 #include "cc/resources/tile_task_runner.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 public: | 25 public: |
26 ~BitmapTileTaskWorkerPool() override; | 26 ~BitmapTileTaskWorkerPool() override; |
27 | 27 |
28 static scoped_ptr<TileTaskWorkerPool> Create( | 28 static scoped_ptr<TileTaskWorkerPool> Create( |
29 base::SequencedTaskRunner* task_runner, | 29 base::SequencedTaskRunner* task_runner, |
30 TaskGraphRunner* task_graph_runner, | 30 TaskGraphRunner* task_graph_runner, |
31 ResourceProvider* resource_provider); | 31 ResourceProvider* resource_provider); |
32 | 32 |
33 // Overridden from TileTaskWorkerPool: | 33 // Overridden from TileTaskWorkerPool: |
34 TileTaskRunner* AsTileTaskRunner() override; | 34 TileTaskRunner* AsTileTaskRunner() override; |
| 35 ResourceFormat GetResourceFormat() override; |
35 | 36 |
36 // Overridden from TileTaskRunner: | 37 // Overridden from TileTaskRunner: |
37 void SetClient(TileTaskRunnerClient* client) override; | 38 void SetClient(TileTaskRunnerClient* client) override; |
38 void Shutdown() override; | 39 void Shutdown() override; |
39 void ScheduleTasks(TileTaskQueue* queue) override; | 40 void ScheduleTasks(TileTaskQueue* queue) override; |
40 void CheckForCompletedTasks() override; | 41 void CheckForCompletedTasks() override; |
41 | 42 |
42 // Overridden from TileTaskClient: | 43 // Overridden from TileTaskClient: |
43 scoped_ptr<RasterBuffer> AcquireBufferForRaster( | 44 scoped_ptr<RasterBuffer> AcquireBufferForRaster( |
44 const Resource* resource) override; | 45 const Resource* resource) override; |
(...skipping 25 matching lines...) Expand all Loading... |
70 | 71 |
71 base::WeakPtrFactory<BitmapTileTaskWorkerPool> | 72 base::WeakPtrFactory<BitmapTileTaskWorkerPool> |
72 task_set_finished_weak_ptr_factory_; | 73 task_set_finished_weak_ptr_factory_; |
73 | 74 |
74 DISALLOW_COPY_AND_ASSIGN(BitmapTileTaskWorkerPool); | 75 DISALLOW_COPY_AND_ASSIGN(BitmapTileTaskWorkerPool); |
75 }; | 76 }; |
76 | 77 |
77 } // namespace cc | 78 } // namespace cc |
78 | 79 |
79 #endif // CC_RESOURCES_BITMAP_TILE_TASK_WORKER_POOL_H_ | 80 #endif // CC_RESOURCES_BITMAP_TILE_TASK_WORKER_POOL_H_ |
OLD | NEW |