Index: content/common/cursors/webcursor_mac.mm |
diff --git a/content/common/cursors/webcursor_mac.mm b/content/common/cursors/webcursor_mac.mm |
index c0a7885c6ef30e4199695a4edf97653060b3898f..2c0c2aa87effed73dfc10899d380e983bc5b0aa8 100644 |
--- a/content/common/cursors/webcursor_mac.mm |
+++ b/content/common/cursors/webcursor_mac.mm |
@@ -151,7 +151,7 @@ NSCursor* CreateCustomCursor(const std::vector<char>& custom_data, |
} |
SkBitmap bitmap; |
- if (bitmap.allocN32Pixels(size.width(), size.height()) && data) |
+ if (bitmap.tryAllocN32Pixels(size.width(), size.height()) && data) |
memcpy(bitmap.getAddr32(0, 0), data, data_size); |
else |
bitmap.eraseARGB(0, 0, 0, 0); |