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

Unified Diff: ui/gfx/color_space.h

Issue 2727063002: cc: Specify rasterization color space (Closed)
Patch Set: Add comment Created 3 years, 10 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/trees/layer_tree_host_impl.cc ('k') | ui/gfx/color_space.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/color_space.h
diff --git a/ui/gfx/color_space.h b/ui/gfx/color_space.h
index 117f1a75cf411395448ac975be148a7c738ffedb..138de565f5d02802ad33a087649104c68a114a0e 100644
--- a/ui/gfx/color_space.h
+++ b/ui/gfx/color_space.h
@@ -144,6 +144,11 @@ class GFX_EXPORT ColorSpace {
// range, and unspecified spaces.
sk_sp<SkColorSpace> ToSkColorSpace() const;
+ // Return an SkColorSpace that represents this color space, with output-space
+ // blending (which is only linear for color spaces with a linear tranasfer
+ // function).
+ sk_sp<SkColorSpace> ToNonlinearBlendedSkColorSpace() const;
+
// Populate |icc_profile| with an ICC profile that represents this color
// space. Returns false if this space is not representable. This ICC profile
// will be constructed ignoring the range adjust and transfer matrices (this
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | ui/gfx/color_space.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698