From 939e86f5e4354ebfeb87a5cff590969d46281118 Mon Sep 17 00:00:00 2001 From: David Capello Date: Mon, 4 Apr 2016 10:07:22 -0300 Subject: [PATCH] SkiaSurface::create() creates opaque images (alpha isn't needed) --- src/she/skia/skia_surface.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/she/skia/skia_surface.h b/src/she/skia/skia_surface.h index 0daf66df4..0da7e81dc 100644 --- a/src/she/skia/skia_surface.h +++ b/src/she/skia/skia_surface.h @@ -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);