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

Unified Diff: cc/tiles/decoded_image_tracker.h

Issue 2703633004: cc: Make image controller return a status with the callback. (Closed)
Patch Set: update Created 3 years, 10 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 | « no previous file | cc/tiles/decoded_image_tracker.cc » ('j') | cc/tiles/image_controller.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tiles/decoded_image_tracker.h
diff --git a/cc/tiles/decoded_image_tracker.h b/cc/tiles/decoded_image_tracker.h
index 2d303ee5fe9efa94182e0099131236d2a8c846cd..a6bfc616ec4385c8ea1e4a872f32edde4625f299 100644
--- a/cc/tiles/decoded_image_tracker.h
+++ b/cc/tiles/decoded_image_tracker.h
@@ -30,7 +30,7 @@ class CC_EXPORT DecodedImageTracker {
~DecodedImageTracker();
void QueueImageDecode(sk_sp<const SkImage> image,
- const base::Closure& callback);
+ const base::Callback<void(bool)>& callback);
Khushal 2017/02/17 23:56:38 Add a comment about what the bool in the callback
vmpstr 2017/02/24 02:43:49 Done.
void NotifyFrameFinished();
private:
@@ -41,8 +41,9 @@ class CC_EXPORT DecodedImageTracker {
image_controller_ = controller;
}
- void ImageDecodeFinished(const base::Closure& callback,
- ImageController::ImageDecodeRequestId id);
+ void ImageDecodeFinished(const base::Callback<void(bool)>& callback,
+ ImageController::ImageDecodeRequestId id,
+ ImageController::ImageDecodeResult result);
ImageController* image_controller_ = nullptr;
std::vector<std::pair<ImageController::ImageDecodeRequestId, int>>
« no previous file with comments | « no previous file | cc/tiles/decoded_image_tracker.cc » ('j') | cc/tiles/image_controller.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698