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

Unified Diff: cc/tiles/tile_manager.h

Issue 1418573002: cc: Add image decode control in the compositor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/tiles/tile_manager.h
diff --git a/cc/tiles/tile_manager.h b/cc/tiles/tile_manager.h
index abffc7cb5998794580de7a4956646a0ea6e40ff3..0d3be5ec880da28f8de901ff009ba12e21d76b22 100644
--- a/cc/tiles/tile_manager.h
+++ b/cc/tiles/tile_manager.h
@@ -128,7 +128,8 @@ class CC_EXPORT TileManager : public TileTaskRunnerClient {
// SetResources.
void SetResources(ResourcePool* resource_pool,
TileTaskRunner* tile_task_runner,
- size_t scheduled_raster_task_limit);
+ size_t scheduled_raster_task_limit,
+ bool is_using_gpu_rasterization);
// This causes any completed raster work to finalize, so that tiles get up to
// date draw information.
@@ -142,6 +143,10 @@ class CC_EXPORT TileManager : public TileTaskRunnerClient {
bool IsReadyToActivate() const;
bool IsReadyToDraw() const;
+ ImageDecodeController* GetImageDecodeController() {
+ return &image_decode_controller_;
+ }
+
scoped_refptr<base::trace_event::ConvertableToTraceFormat> BasicStateAsValue()
const;
void BasicStateAsValueInto(base::trace_event::TracedValue* dict) const;
@@ -338,6 +343,8 @@ class CC_EXPORT TileManager : public TileTaskRunnerClient {
uint64_t prepare_tiles_count_;
uint64_t next_tile_id_;
+ base::hash_map<Tile::Id, std::vector<DrawImage>> scheduled_draw_images_;
+
DISALLOW_COPY_AND_ASSIGN(TileManager);
};

Powered by Google App Engine
This is Rietveld 408576698