SkiaSurface::applyScale() uses the same color/alpha-type to resize the image

This commit is contained in:
David Capello 2016-04-04 10:08:04 -03:00
parent 939e86f5e4
commit 79c2033a67

View File

@ -170,7 +170,9 @@ public:
SkBitmap result;
if (!result.tryAllocPixels(
SkImageInfo::MakeN32Premul(width()*scaleFactor, height()*scaleFactor)))
SkImageInfo::Make(width()*scaleFactor, height()*scaleFactor,
m_bitmap.info().colorType(),
m_bitmap.info().alphaType())))
throw base::Exception("Cannot create temporary Skia surface to change scale");
SkPaint paint;