Chromium Code Reviews| Index: cc/raster/tile_task_runner.h |
| diff --git a/cc/raster/tile_task_runner.h b/cc/raster/tile_task_runner.h |
| index 234ca6f04ab5fc2be423e5d775de7e79cc99c27b..fd251eec851a8423c9a905cd1a7ef14d83854c40 100644 |
| --- a/cc/raster/tile_task_runner.h |
| +++ b/cc/raster/tile_task_runner.h |
| @@ -11,6 +11,7 @@ |
| #include "base/callback.h" |
| #include "cc/raster/task_graph_runner.h" |
| #include "cc/resources/resource_format.h" |
| +#include "ui/gfx/geometry/rect.h" |
|
reveman
2015/05/28 05:07:25
don't think you need this anymore
danakj
2015/05/28 18:54:47
Done.
|
| namespace cc { |
| class ImageDecodeTask; |
| @@ -18,10 +19,23 @@ class RasterTask; |
| class Resource; |
| class RasterBuffer; |
| +struct TileTaskData { |
|
reveman
2015/05/28 05:07:24
not a fan of things named "data", "info", etc. can
danakj
2015/05/28 18:54:47
I can. Every time we add a new parameter it requir
|
| + TileTaskData(const Resource* resource, |
| + uint64_t new_content_id, |
| + uint64_t previous_content_id) |
| + : resource(resource), |
| + new_content_id(new_content_id), |
| + previous_content_id(previous_content_id) {} |
| + |
| + const Resource* resource; |
| + uint64_t new_content_id; |
| + uint64_t previous_content_id; |
| +}; |
| + |
| class CC_EXPORT TileTaskClient { |
| public: |
| virtual scoped_ptr<RasterBuffer> AcquireBufferForRaster( |
| - const Resource* resource) = 0; |
| + const TileTaskData& data) = 0; |
| virtual void ReleaseBufferForRaster(scoped_ptr<RasterBuffer> buffer) = 0; |
|
reveman
2015/05/28 05:07:25
Discussed this with Vlad and I think there are som
danakj
2015/05/28 18:54:47
This doesn't work. Tile manager doesn't know if th
reveman
2015/05/29 14:50:26
The whole point of the interface suggestion above
|
| protected: |