aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkColorSpaceXform.h
diff options
context:
space:
mode:
authorGravatar Brian Osman <brianosman@google.com>2017-03-20 14:21:18 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-03-20 18:53:57 +0000
commitb1168a7c9a360bf80b447e2e399bdc5721d5152e (patch)
treead2fee14ec7aa17631fd794235cbb8c8417397f6 /include/core/SkColorSpaceXform.h
parentedf06b207a8441d619838d4751528cb92a3547d7 (diff)
Improvements to readpixels GM
We don't support unpremultiplied images. Therefore: - Don't test unpremul source images. - After doing an unpremultiplying read, make sure to premul before drawing For this to work with F16, add support for F16 sources to SkColorSpaceXform. Public API change is comments-only. TBR=reed@google.com BUG=skia: Change-Id: Ie05b58231e99ca88cd7792b65ffbb4f390b01726 Reviewed-on: https://skia-review.googlesource.com/9900 Commit-Queue: Brian Osman <brianosman@google.com> Reviewed-by: Matt Sarett <msarett@google.com>
Diffstat (limited to 'include/core/SkColorSpaceXform.h')
-rw-r--r--include/core/SkColorSpaceXform.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/core/SkColorSpaceXform.h b/include/core/SkColorSpaceXform.h
index 0c4fd7aa33..fc38b7cbbc 100644
--- a/include/core/SkColorSpaceXform.h
+++ b/include/core/SkColorSpaceXform.h
@@ -32,15 +32,15 @@ public:
kRGB_U16_BE_ColorFormat, // Src only
kRGBA_U16_BE_ColorFormat, // Src only
- kRGBA_F16_ColorFormat, // Dst only
+ kRGBA_F16_ColorFormat,
kRGBA_F32_ColorFormat, // Dst only
};
/**
* Apply the color conversion to a |src| buffer, storing the output in the |dst| buffer.
*
- * F16 and F32 are only supported as dst color formats, and only when the dst color space
- * is linear. This function will return false in unsupported cases.
+ * F32 is only supported as a dst color format. F16 and F32 are only supported when the color
+ * space is linear. This function will return false in unsupported cases.
*
* @param dst Stored in the format described by |dstColorFormat|
* @param src Stored in the format described by |srcColorFormat|