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

Unified Diff: cc/paint/draw_image.cc

Issue 2797583002: cc: Add color space to image decode caches (Closed)
Patch Set: Remove dead code Created 3 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
« no previous file with comments | « cc/paint/draw_image.h ('k') | cc/raster/image_hijack_canvas.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/paint/draw_image.cc
diff --git a/cc/paint/draw_image.cc b/cc/paint/draw_image.cc
index b961175df16158a05b6b7d7aca0dffb19a3dfa17..6c0bb644864aa9bcbbf9e737d42b394ee300a0ca 100644
--- a/cc/paint/draw_image.cc
+++ b/cc/paint/draw_image.cc
@@ -33,11 +33,13 @@ DrawImage::DrawImage()
DrawImage::DrawImage(sk_sp<const SkImage> image,
const SkIRect& src_rect,
SkFilterQuality filter_quality,
- const SkMatrix& matrix)
+ const SkMatrix& matrix,
+ const gfx::ColorSpace& target_color_space)
: image_(std::move(image)),
src_rect_(src_rect),
filter_quality_(filter_quality),
- matrix_(matrix) {
+ matrix_(matrix),
+ target_color_space_(target_color_space) {
matrix_is_decomposable_ = ExtractScale(matrix_, &scale_);
}
« no previous file with comments | « cc/paint/draw_image.h ('k') | cc/raster/image_hijack_canvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698