SkiaSurface::create() creates opaque images (alpha isn't needed)

This commit is contained in:
David Capello 2016-04-04 10:07:22 -03:00
parent fdbb70b1a4
commit 939e86f5e4

View File

@ -58,7 +58,7 @@ public:
ASSERT(!m_surface);
if (!m_bitmap.tryAllocPixels(
SkImageInfo::MakeN32Premul(width, height)))
SkImageInfo::MakeN32(width, height, kOpaque_SkAlphaType)))
throw base::Exception("Cannot create Skia surface");
m_bitmap.eraseColor(SK_ColorTRANSPARENT);