Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4244)

Unified Diff: cc/raster/tile_task_runner.h

Issue 1139063002: cc: Partial tile update for one-copy raster. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: monocle: slightlylessstruct Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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:

Powered by Google App Engine
This is Rietveld 408576698