Disable linear blending on iOS simulator (flutter/engine#4413)

Fixes flutter/flutter#13308

Overlooked this case when I previously removed linear blending. MakeS32 creates a surface with a color space attached (triggering the linear blending behavior). MakeN32 creates a legacy surface (no color space), which matches what the other backend bindings do (including the GL surface factory, and the raster cache).
This commit is contained in:
Brian Osman
2017-12-05 08:38:53 -05:00
committed by GitHub
parent 8c8c058d48
commit 49808d7687

View File

@@ -63,7 +63,7 @@ sk_sp<SkSurface> IOSSurfaceSoftware::AcquireBackingStore(const SkISize& size) {
return sk_surface_;
}
SkImageInfo info = SkImageInfo::MakeS32(size.fWidth, size.fHeight, kPremul_SkAlphaType);
SkImageInfo info = SkImageInfo::MakeN32(size.fWidth, size.fHeight, kPremul_SkAlphaType);
sk_surface_ = SkSurface::MakeRaster(info, nullptr);
return sk_surface_;
}