Chromium Code Reviews| Index: content/common/cursors/webcursor_mac.mm |
| diff --git a/content/common/cursors/webcursor_mac.mm b/content/common/cursors/webcursor_mac.mm |
| index cd12a33a8256f938cce303982a8de3ab4414978b..67e1976d3d30f03cdc705e63014fe943bffbfb50 100644 |
| --- a/content/common/cursors/webcursor_mac.mm |
| +++ b/content/common/cursors/webcursor_mac.mm |
| @@ -151,7 +151,9 @@ NSCursor* CreateCustomCursor(const std::vector<char>& custom_data, |
| } |
| SkBitmap bitmap; |
| - if (bitmap.tryAllocN32Pixels(size.width(), size.height()) && data) |
| + SkImageInfo image_info = SkImageInfo::MakeN32(size.width(), size.height(), |
| + kUnpremul_SkAlphaType); |
|
Avi (use Gerrit)
2015/10/21 05:13:50
Align this parameter with the first, and if it doe
|
| + if (bitmap.tryAllocPixels(image_info) && data) |
| memcpy(bitmap.getAddr32(0, 0), data, data_size); |
| else |
| bitmap.eraseARGB(0, 0, 0, 0); |