Index: src/lazy/SkDiscardablePixelRef.cpp |
diff --git a/src/lazy/SkDiscardablePixelRef.cpp b/src/lazy/SkDiscardablePixelRef.cpp |
index a86c3deff426a07c548cec81a3325f294e23e6d2..ec8d5ea9afeb13f6f672c1aef02df2ddf7f0b502 100644 |
--- a/src/lazy/SkDiscardablePixelRef.cpp |
+++ b/src/lazy/SkDiscardablePixelRef.cpp |
@@ -110,7 +110,7 @@ bool SkInstallDiscardablePixelRef(SkImageGenerator* generator, SkBitmap* dst, |
SkASSERT(info.colorType() != kUnknown_SkColorType); |
if (dst->empty()) { // Use a normal pixelref. |
- return dst->allocPixels(); |
+ return dst->tryAllocPixels(); |
} |
SkAutoTUnref<SkDiscardablePixelRef> ref( |
SkNEW_ARGS(SkDiscardablePixelRef, |