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..889304e02615346dd171ad99afbdf0f505fbc685 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" |
| namespace cc { |
| class ImageDecodeTask; |
| @@ -18,10 +19,26 @@ class RasterTask; |
| class Resource; |
| class RasterBuffer; |
| +struct TileTaskData { |
| + TileTaskData(const Resource* resource, |
| + uint64_t new_tile_id, |
| + uint64_t previous_tile_id, |
| + const gfx::Rect& raster_dirty_rect) |
| + : resource(resource), |
| + new_tile_id(new_tile_id), |
| + previous_tile_id(previous_tile_id), |
| + raster_dirty_rect(raster_dirty_rect) {} |
| + |
| + const Resource* resource; |
| + uint64_t new_tile_id; |
| + uint64_t previous_tile_id; |
| + gfx::Rect raster_dirty_rect; |
| +}; |
|
reveman
2015/05/22 17:15:13
If I understand this correctly, here's how this wo
danakj
2015/05/26 19:02:52
Correct.
reveman
2015/05/26 20:12:37
I was thinking the cc::Resource class and not the
|
| + |
| 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; |
| protected: |