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

Unified Diff: cc/playback/raster_source.h

Issue 2752523006: cc: Use SkCreateColorSpaceXformCanvas for color transforms (Closed)
Patch Set: Allow to link Created 3 years, 9 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/playback/raster_source.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/playback/raster_source.h
diff --git a/cc/playback/raster_source.h b/cc/playback/raster_source.h
index 522557cbb8daa2b77975177f965a412eafa0d0ee..820d78de01b213449d14a0b600c9376a4e3ed3bf 100644
--- a/cc/playback/raster_source.h
+++ b/cc/playback/raster_source.h
@@ -17,6 +17,7 @@
#include "cc/playback/recording_source.h"
#include "skia/ext/analysis_canvas.h"
#include "third_party/skia/include/core/SkPicture.h"
+#include "ui/gfx/color_space.h"
namespace cc {
class DisplayItemList;
@@ -42,6 +43,10 @@ class CC_EXPORT RasterSource : public base::RefCountedThreadSafe<RasterSource> {
// compositor image caching.
bool use_image_hijack_canvas;
+ // If set, use a SkColorSpaceXformCanvas to specify a transform all inputs
+ // to this color space.
+ gfx::ColorSpace target_color_space;
enne (OOO) 2017/03/15 22:15:40 Maybe I'm missing something, but would it make sen
ccameron 2017/03/16 05:11:34 That makes a lot of sense -- we can then the color
+
// If non-empty, an image hijack canvas will be used to skip these images
// during raster.
// TODO(khushalsagar): Consolidate more settings for playback here? See
@@ -151,7 +156,9 @@ class CC_EXPORT RasterSource : public base::RefCountedThreadSafe<RasterSource> {
ImageDecodeCache* image_decode_cache_;
private:
- void RasterCommon(SkCanvas* canvas, SkPicture::AbortCallback* callback) const;
+ void RasterCommon(SkCanvas* canvas,
+ const gfx::ColorSpace& target_color_space,
+ SkPicture::AbortCallback* callback) const;
void PrepareForPlaybackToCanvas(SkCanvas* canvas) const;
« no previous file with comments | « no previous file | cc/playback/raster_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698