Index: src/image/SkSurface_Raster.cpp |
diff --git a/src/image/SkSurface_Raster.cpp b/src/image/SkSurface_Raster.cpp |
index 2b2bf645260e2b3fc983ba1b6d0f638627b27849..f2cb94a04f75f48501a362cf840e3d9fee741504 100644 |
--- a/src/image/SkSurface_Raster.cpp |
+++ b/src/image/SkSurface_Raster.cpp |
@@ -208,11 +208,7 @@ |
return nullptr; |
} |
- // If the requested alpha type is opaque, then leave the pixels uninitialized. |
- // Alpha formats can be safely initialiezd to zero. |
- SkAutoTUnref<SkPixelRef> pr(info.isOpaque() |
- ? SkMallocPixelRef::NewAllocate(info, rowBytes, nullptr) |
- : SkMallocPixelRef::NewZeroed(info, rowBytes, nullptr)); |
+ SkAutoTUnref<SkPixelRef> pr(SkMallocPixelRef::NewZeroed(info, rowBytes, nullptr)); |
if (nullptr == pr.get()) { |
return nullptr; |
} |