aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/image/SkSurface_Raster.cpp
diff options
context:
space:
mode:
authorGravatar Matt Sarett <msarett@google.com>2017-06-09 15:05:12 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-06-09 19:29:13 +0000
commit69d14696543fbc1fe3b00832d9195bd5f792eafd (patch)
treeec36b0db701a6ac723187e1c07ed584935052c59 /src/image/SkSurface_Raster.cpp
parentb58194a90ee788f0da8daffcc444ea74237f4b79 (diff)
Revert "Disable F16-nullptr sources"
Manual revert: failing ui rendering cts tests Bug: b/62482405 Change-Id: I652ec8dce482d303437835a27c50a22248afd955 Reviewed-on: https://skia-review.googlesource.com/19360 Reviewed-by: Matt Sarett <msarett@google.com> Commit-Queue: Matt Sarett <msarett@google.com>
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 688e23411f..1ee3d7ea61 100644
--- a/src/image/SkSurface_Raster.cpp
+++ b/src/image/SkSurface_Raster.cpp
@@ -63,7 +63,7 @@ bool SkSurfaceValidateRasterInfo(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;