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

Unified Diff: cc/playback/raster_source.h

Issue 2525453002: Raster: Allow a RasterSource to specify its color space (Closed)
Patch Set: Only set implied space when color correct rendering is disabled Created 4 years 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/playback/display_item_list.h ('k') | 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 4e53c408627a5601da3f9c1337763692aa39ff97..4fe6e5a373b8423a662921475ae878776e8c24ad 100644
--- a/cc/playback/raster_source.h
+++ b/cc/playback/raster_source.h
@@ -17,6 +17,10 @@
#include "skia/ext/analysis_canvas.h"
#include "third_party/skia/include/core/SkPicture.h"
+namespace gfx {
+class ColorSpace;
+}
+
namespace cc {
class DisplayItemList;
class DrawImage;
@@ -78,6 +82,14 @@ class CC_EXPORT RasterSource : public base::RefCountedThreadSafe<RasterSource> {
// Returns the size of this raster source.
gfx::Size GetSize() const;
+ // Returns whether or not there was a color space implied by the raster source
+ // when it was created. If this returns true then no color correction is
+ // to be applied at rasterization time, and the result of rasterization is to
+ // be interpreted as being in this color space. If this returns falce, then
+ // then a destination color space must be specified at raster time.
+ bool HasImpliedColorSpace() const;
+ const gfx::ColorSpace& GetImpliedColorSpace() const;
+
// Populate the given list with all images that may overlap the given
// rect in layer space. The returned draw images' matrices are modified as if
// they were being using during raster at scale |raster_scale|.
« no previous file with comments | « cc/playback/display_item_list.h ('k') | cc/playback/raster_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698