aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/image/SkSurface_Raster.cpp
diff options
context:
space:
mode:
authorGravatar Brian Osman <brianosman@google.com>2016-11-01 16:30:21 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2016-11-01 21:05:38 +0000
commiteb21ef6641315ae08c20728f868534a4dd762a38 (patch)
treefa7c1d61108b419fadf6b21b63cda4790b4a38ca /src/image/SkSurface_Raster.cpp
parent7039f74a8b1d39b9c44fd357912ce66e6bc9fd25 (diff)
Loosen restriction on F16 surfaces - allow "legacy" F16 mode
BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=4231 Change-Id: I032cdf82468ca11639760eb99773a88a5808ebe6 Reviewed-on: https://skia-review.googlesource.com/4231 Commit-Queue: Brian Osman <brianosman@google.com> Reviewed-by: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'src/image/SkSurface_Raster.cpp')
-rw-r--r--src/image/SkSurface_Raster.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/image/SkSurface_Raster.cpp b/src/image/SkSurface_Raster.cpp
index f2cb94a04f..c27e1bc91d 100644
--- a/src/image/SkSurface_Raster.cpp
+++ b/src/image/SkSurface_Raster.cpp
@@ -67,7 +67,7 @@ bool SkSurface_Raster::Valid(const SkImageInfo& info, size_t rowBytes) {
shift = 2;
break;
case kRGBA_F16_SkColorType:
- if (!info.colorSpace() || !info.colorSpace()->gammaIsLinear()) {
+ if (info.colorSpace() && !info.colorSpace()->gammaIsLinear()) {
return false;
}
shift = 3;