Index: src/core/SkBitmapDevice.cpp |
diff --git a/src/core/SkBitmapDevice.cpp b/src/core/SkBitmapDevice.cpp |
index 5f205ce1e6eb1add6826b2a11c61bd894556a6dc..2287864bae6ece04ca7fbf803996630c226e903a 100644 |
--- a/src/core/SkBitmapDevice.cpp |
+++ b/src/core/SkBitmapDevice.cpp |
@@ -82,7 +82,7 @@ SkBitmapDevice* SkBitmapDevice::Create(const SkImageInfo& origInfo, |
return NULL; |
} |
} else { |
- if (!bitmap.allocPixels(info)) { |
+ if (!bitmap.tryAllocPixels(info)) { |
return NULL; |
} |
if (!bitmap.info().isOpaque()) { |