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

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: rebase Created 4 years, 11 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
« no previous file with comments | « cc/tiles/image_decode_controller_unittest.cc ('k') | cc/tiles/tile_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tiles/tile_manager.h
diff --git a/cc/tiles/tile_manager.h b/cc/tiles/tile_manager.h
index 1f0e3fee702acc5b99f87ef0f53e05e8e8030f56..d74d8714897f4e270df049d262a043a1ea981c1a 100644
--- a/cc/tiles/tile_manager.h
+++ b/cc/tiles/tile_manager.h
@@ -132,6 +132,10 @@ class CC_EXPORT TileManager {
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;
@@ -333,6 +337,8 @@ class CC_EXPORT TileManager {
uint64_t prepare_tiles_count_;
uint64_t next_tile_id_;
+ base::hash_map<Tile::Id, std::vector<DrawImage>> scheduled_draw_images_;
+
base::WeakPtrFactory<TileManager> task_set_finished_weak_ptr_factory_;
DISALLOW_COPY_AND_ASSIGN(TileManager);
« no previous file with comments | « cc/tiles/image_decode_controller_unittest.cc ('k') | cc/tiles/tile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698