Fix crash on OS X

This is strange because it didn’t happen before, I’m not sure if we
can call (or is “legal” to call) setURI() in this case.
This commit is contained in:
David Capello 2016-04-21 13:33:24 -03:00
parent 7c2786164d
commit f447b457db

View File

@ -137,8 +137,6 @@ public:
kN32_SkColorType, SkImageDecoder::kDecodePixels_Mode);
if (res == SkImageDecoder::kSuccess) {
bm.pixelRef()->setURI(filename);
SkiaSurface* sur = new SkiaSurface();
sur->swapBitmap(bm);
return sur;