Index: src/gpu/GrSurface.cpp |
diff --git a/src/gpu/GrSurface.cpp b/src/gpu/GrSurface.cpp |
index a07fe67ae458dabd45e61305753dcf4cf9862aca..54497fe8c8a3018a98679be480b8ec7f15b72eeb 100644 |
--- a/src/gpu/GrSurface.cpp |
+++ b/src/gpu/GrSurface.cpp |
@@ -25,8 +25,7 @@ SkImageInfo GrSurface::info() const { |
bool GrSurface::savePixels(const char* filename) { |
SkBitmap bm; |
- if (!bm.allocPixels(SkImageInfo::MakeN32Premul(this->width(), |
- this->height()))) { |
+ if (!bm.tryAllocPixels(SkImageInfo::MakeN32Premul(this->width(), this->height()))) { |
return false; |
} |