Index: gm/pictureimagegenerator.cpp |
diff --git a/gm/pictureimagegenerator.cpp b/gm/pictureimagegenerator.cpp |
index 9149ec1a70bd2484cdf0b61cddbc1b15d5bcc093..829006d80876e86759b020b1f90af659a1522edc 100644 |
--- a/gm/pictureimagegenerator.cpp |
+++ b/gm/pictureimagegenerator.cpp |
@@ -160,7 +160,7 @@ protected: |
SkImageGenerator::NewFromPicture(configs[i].size, fPicture.get(), &m, |
p.getAlpha() != 255 ? &p : nullptr)); |
SkBitmap bm; |
- SkAssertResult(SkInstallDiscardablePixelRef(gen.detach(), &bm)); |
+ gen->generateBitmap(&bm); |
const SkScalar x = kDrawSize * (i % kDrawsPerRow); |
const SkScalar y = kDrawSize * (i / kDrawsPerRow); |