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

Unified Diff: cc/tiles/image_manager.h

Issue 2345833002: cc: Move (partially) the predecode image tracking to ImageManager. (Closed)
Patch Set: initialize var Created 4 years, 3 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/BUILD.gn ('k') | cc/tiles/image_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tiles/image_manager.h
diff --git a/cc/tiles/image_manager.h b/cc/tiles/image_manager.h
index cc6c64fd14f576c78f1dbe2f78875311fde1ec33..046e0948e8bda2775cace12819247934828f59db 100644
--- a/cc/tiles/image_manager.h
+++ b/cc/tiles/image_manager.h
@@ -28,9 +28,13 @@ class CC_EXPORT ImageManager {
const ImageDecodeController::TracingInfo& tracing_info);
void UnrefImages(const std::vector<DrawImage>& images);
void ReduceMemoryUsage();
+ std::vector<scoped_refptr<TileTask>> SetPredecodeImages(
+ std::vector<DrawImage> predecode_images,
+ const ImageDecodeController::TracingInfo& tracing_info);
private:
- ImageDecodeController* controller_;
+ ImageDecodeController* controller_ = nullptr;
+ std::vector<DrawImage> predecode_locked_images_;
DISALLOW_COPY_AND_ASSIGN(ImageManager);
};
« no previous file with comments | « cc/BUILD.gn ('k') | cc/tiles/image_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698