Index: samplecode/SampleApp.cpp |
diff --git a/samplecode/SampleApp.cpp b/samplecode/SampleApp.cpp |
index 34d1b9736047807fbe671b2a7d53eca88aea7835..e8d6d9911ece39a62250712009b0a11b148e9d6b 100644 |
--- a/samplecode/SampleApp.cpp |
+++ b/samplecode/SampleApp.cpp |
@@ -999,7 +999,7 @@ void SampleWindow::listTitles() { |
static SkBitmap capture_bitmap(SkCanvas* canvas) { |
SkBitmap bm; |
- if (bm.allocPixels(canvas->imageInfo())) { |
+ if (bm.tryAllocPixels(canvas->imageInfo())) { |
canvas->readPixels(&bm, 0, 0); |
} |
return bm; |