Index: src/core/SkPictureShader.cpp |
diff --git a/src/core/SkPictureShader.cpp b/src/core/SkPictureShader.cpp |
index 73ab170f119cd15948c74fa71b0cde1191b57e56..a7b5412b5a5dabc1a6a584429a229caddf531b48 100644 |
--- a/src/core/SkPictureShader.cpp |
+++ b/src/core/SkPictureShader.cpp |
@@ -107,7 +107,7 @@ SkShader* SkPictureShader::refBitmapShader(const SkMatrix& matrix, const SkMatri |
if (!fCachedBitmapShader || tileScale != fCachedTileScale) { |
SkBitmap bm; |
- if (!bm.allocN32Pixels(tileSize.width(), tileSize.height())) { |
+ if (!bm.tryAllocN32Pixels(tileSize.width(), tileSize.height())) { |
return NULL; |
} |
bm.eraseColor(SK_ColorTRANSPARENT); |