aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/image/SkSurface_Raster.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/image/SkSurface_Raster.cpp')
-rw-r--r--src/image/SkSurface_Raster.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/image/SkSurface_Raster.cpp b/src/image/SkSurface_Raster.cpp
index 3611b30828..e55e5a751a 100644
--- a/src/image/SkSurface_Raster.cpp
+++ b/src/image/SkSurface_Raster.cpp
@@ -62,6 +62,12 @@ bool SkSurfaceValidateRasterInfo(const SkImageInfo& info, size_t rowBytes) {
}
shift = 1;
break;
+ case kARGB_4444_SkColorType:
+ if (info.colorSpace()) {
+ return false;
+ }
+ shift = 1;
+ break;
case kN32_SkColorType:
if (info.colorSpace() && !info.colorSpace()->gammaCloseToSRGB()) {
return false;