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

Unified Diff: cc/raster/image_hijack_canvas.h

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.cc ('k') | cc/raster/image_hijack_canvas.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/raster/image_hijack_canvas.h
diff --git a/cc/raster/image_hijack_canvas.h b/cc/raster/image_hijack_canvas.h
index 7a1940bd66f3a8604d4a7ee9f8a7b0ee7193d4c1..4693e8d862264170ca8cac5bdacc14cfeac24490 100644
--- a/cc/raster/image_hijack_canvas.h
+++ b/cc/raster/image_hijack_canvas.h
@@ -11,6 +11,7 @@
#include "cc/cc_export.h"
#include "cc/paint/image_id.h"
#include "third_party/skia/include/utils/SkNWayCanvas.h"
+#include "ui/gfx/color_space.h"
namespace cc {
@@ -21,7 +22,8 @@ class CC_EXPORT ImageHijackCanvas : public SkNWayCanvas {
ImageHijackCanvas(int width,
int height,
ImageDecodeCache* image_decode_cache,
- const ImageIdFlatSet* images_to_skip);
+ const ImageIdFlatSet* images_to_skip,
+ const gfx::ColorSpace& target_color_space);
private:
// Ensure that pictures are unpacked by this canvas, instead of being
@@ -57,6 +59,7 @@ class CC_EXPORT ImageHijackCanvas : public SkNWayCanvas {
ImageDecodeCache* image_decode_cache_;
const ImageIdFlatSet* images_to_skip_;
+ const gfx::ColorSpace target_color_space_;
DISALLOW_COPY_AND_ASSIGN(ImageHijackCanvas);
};
« no previous file with comments | « cc/paint/draw_image.cc ('k') | cc/raster/image_hijack_canvas.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698