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

Unified Diff: cc/tiles/software_image_decode_controller.h

Issue 1854723002: cc: Simplify task and its derived classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Corrected scope of dependencies. Created 4 years, 8 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/tiles/software_image_decode_controller.h
diff --git a/cc/tiles/software_image_decode_controller.h b/cc/tiles/software_image_decode_controller.h
index 4e959c7f2f8deae238e8e1e1bd9b4435c12e29ff..b5ed096887950653e271aa11fd9a5280a13f8d31 100644
--- a/cc/tiles/software_image_decode_controller.h
+++ b/cc/tiles/software_image_decode_controller.h
@@ -105,7 +105,7 @@ class CC_EXPORT SoftwareImageDecodeController : public ImageDecodeController {
// ImageDecodeController overrides.
bool GetTaskForImageAndRef(const DrawImage& image,
uint64_t prepare_tiles_id,
- scoped_refptr<ImageDecodeTask>* task) override;
+ scoped_refptr<Task>* task) override;
void UnrefImage(const DrawImage& image) override;
DecodedDrawImage GetDecodedImageForDraw(const DrawImage& image) override;
void DrawWithImageFinished(const DrawImage& image,
@@ -199,7 +199,7 @@ class CC_EXPORT SoftwareImageDecodeController : public ImageDecodeController {
// more of them.
bool CanHandleImage(const ImageKey& key);
- std::unordered_map<ImageKey, scoped_refptr<ImageDecodeTask>, ImageKeyHash>
+ std::unordered_map<ImageKey, scoped_refptr<Task>, ImageKeyHash>
pending_image_tasks_;
// The members below this comment can only be accessed if the lock is held to

Powered by Google App Engine
This is Rietveld 408576698