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 "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/raster/tile_task_runner.h" | 10 #include "cc/raster/tile_task_runner.h" |
(...skipping 20 matching lines...) Expand all Loading... |
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 | 35 |
36 // Overridden from TileTaskRunner: | 36 // Overridden from TileTaskRunner: |
37 void SetClient(TileTaskRunnerClient* client) override; | 37 void SetClient(TileTaskRunnerClient* client) override; |
38 void Shutdown() override; | 38 void Shutdown() override; |
39 void ScheduleTasks(TileTaskQueue* queue) override; | 39 void ScheduleTasks(TileTaskQueue* queue) override; |
40 void CheckForCompletedTasks() override; | 40 void CheckForCompletedTasks() override; |
41 ResourceFormat GetResourceFormat() const override; | 41 ResourceFormat GetResourceFormat(bool must_be_noncompressed, |
42 bool GetResourceRequiresSwizzle() const override; | 42 bool must_support_alpha) const override; |
| 43 bool GetResourceRequiresSwizzle(bool must_be_noncompressed, |
| 44 bool must_support_alpha) const override; |
43 | 45 |
44 // Overridden from TileTaskClient: | 46 // Overridden from TileTaskClient: |
45 scoped_ptr<RasterBuffer> AcquireBufferForRaster( | 47 scoped_ptr<RasterBuffer> AcquireBufferForRaster( |
46 const Resource* resource, | 48 const Resource* resource, |
47 uint64_t resource_content_id, | 49 uint64_t resource_content_id, |
48 uint64_t previous_content_id) override; | 50 uint64_t previous_content_id) override; |
49 void ReleaseBufferForRaster(scoped_ptr<RasterBuffer> buffer) override; | 51 void ReleaseBufferForRaster(scoped_ptr<RasterBuffer> buffer) override; |
50 | 52 |
51 protected: | 53 protected: |
52 BitmapTileTaskWorkerPool(base::SequencedTaskRunner* task_runner, | 54 BitmapTileTaskWorkerPool(base::SequencedTaskRunner* task_runner, |
(...skipping 22 matching lines...) Expand all Loading... |
75 | 77 |
76 base::WeakPtrFactory<BitmapTileTaskWorkerPool> | 78 base::WeakPtrFactory<BitmapTileTaskWorkerPool> |
77 task_set_finished_weak_ptr_factory_; | 79 task_set_finished_weak_ptr_factory_; |
78 | 80 |
79 DISALLOW_COPY_AND_ASSIGN(BitmapTileTaskWorkerPool); | 81 DISALLOW_COPY_AND_ASSIGN(BitmapTileTaskWorkerPool); |
80 }; | 82 }; |
81 | 83 |
82 } // namespace cc | 84 } // namespace cc |
83 | 85 |
84 #endif // CC_RASTER_BITMAP_TILE_TASK_WORKER_POOL_H_ | 86 #endif // CC_RASTER_BITMAP_TILE_TASK_WORKER_POOL_H_ |
OLD | NEW |