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

Unified Diff: cc/tiles/image_controller.cc

Issue 2857923004: cc: Keep PaintImage in DrawImage. (Closed)
Patch Set: dependent branch Created 3 years, 7 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/image_controller.cc
diff --git a/cc/tiles/image_controller.cc b/cc/tiles/image_controller.cc
index 698dc79e2510b8cf78edfc2239cfde3dff78b49c..af4bf092aa68435f1d5179a179fecdb4b743ff88 100644
--- a/cc/tiles/image_controller.cc
+++ b/cc/tiles/image_controller.cc
@@ -195,8 +195,9 @@ ImageController::ImageDecodeRequestId ImageController::QueueImageDecode(
DCHECK(image);
bool is_image_lazy = image->isLazyGenerated();
auto image_bounds = image->bounds();
- DrawImage draw_image(std::move(image), image_bounds, kNone_SkFilterQuality,
- SkMatrix::I(), target_color_space);
+ DrawImage draw_image(PaintImage(std::move(image)), image_bounds,
+ kNone_SkFilterQuality, SkMatrix::I(),
+ target_color_space);
// Get the tasks for this decode.
scoped_refptr<TileTask> task;

Powered by Google App Engine
This is Rietveld 408576698