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_TILE_TASK_RUNNER_H_ | 5 #ifndef CC_RASTER_TILE_TASK_RUNNER_H_ |
6 #define CC_RESOURCES_TILE_TASK_RUNNER_H_ | 6 #define CC_RASTER_TILE_TASK_RUNNER_H_ |
7 | 7 |
8 #include <bitset> | 8 #include <bitset> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "cc/raster/task_graph_runner.h" |
12 #include "cc/resources/resource_format.h" | 13 #include "cc/resources/resource_format.h" |
13 #include "cc/resources/task_graph_runner.h" | |
14 | 14 |
15 namespace cc { | 15 namespace cc { |
16 class ImageDecodeTask; | 16 class ImageDecodeTask; |
17 class RasterTask; | 17 class RasterTask; |
18 class Resource; | 18 class Resource; |
19 class RasterBuffer; | 19 class RasterBuffer; |
20 | 20 |
21 class CC_EXPORT TileTaskClient { | 21 class CC_EXPORT TileTaskClient { |
22 public: | 22 public: |
23 virtual scoped_ptr<RasterBuffer> AcquireBufferForRaster( | 23 virtual scoped_ptr<RasterBuffer> AcquireBufferForRaster( |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 | 162 |
163 // Returns the format to use for the tiles. | 163 // Returns the format to use for the tiles. |
164 virtual ResourceFormat GetResourceFormat() = 0; | 164 virtual ResourceFormat GetResourceFormat() = 0; |
165 | 165 |
166 protected: | 166 protected: |
167 virtual ~TileTaskRunner() {} | 167 virtual ~TileTaskRunner() {} |
168 }; | 168 }; |
169 | 169 |
170 } // namespace cc | 170 } // namespace cc |
171 | 171 |
172 #endif // CC_RESOURCES_TILE_TASK_RUNNER_H_ | 172 #endif // CC_RASTER_TILE_TASK_RUNNER_H_ |
OLD | NEW |