Index: samplecode/SampleFilterFuzz.cpp |
diff --git a/samplecode/SampleFilterFuzz.cpp b/samplecode/SampleFilterFuzz.cpp |
index 8aa48ed5c9ca5375759e4f958bb50ef3a09cc4b3..f4157cd6b545d0e2c871c24b9ab6cca7dbd3eb8b 100644 |
--- a/samplecode/SampleFilterFuzz.cpp |
+++ b/samplecode/SampleFilterFuzz.cpp |
@@ -153,7 +153,7 @@ static void rand_bitmap_for_canvas(SkBitmap* bitmap) { |
do { |
info = SkImageInfo::Make(kBitmapSize, kBitmapSize, rand_colortype(), |
kPremul_SkAlphaType); |
- } while (!valid_for_raster_canvas(info) || !bitmap->allocPixels(info)); |
+ } while (!valid_for_raster_canvas(info) || !bitmap->tryAllocPixels(info)); |
} |
static void make_g_bitmap(SkBitmap& bitmap) { |