| Index: ui/native_theme/native_theme_win.cc
|
| diff --git a/ui/native_theme/native_theme_win.cc b/ui/native_theme/native_theme_win.cc
|
| index adc73210bbb471d61e78038d6a6080cabe440473..4cc33417c5a61d385c1ea7b55a75c9a4508b5502 100644
|
| --- a/ui/native_theme/native_theme_win.cc
|
| +++ b/ui/native_theme/native_theme_win.cc
|
| @@ -75,7 +75,8 @@ void SetCheckerboardShader(SkPaint* paint, const RECT& align_rect) {
|
| SkBitmap temp_bitmap;
|
| temp_bitmap.installPixels(info, buffer, info.minRowBytes());
|
| SkBitmap bitmap;
|
| - temp_bitmap.copyTo(&bitmap);
|
| + if (bitmap.tryAllocPixels(info))
|
| + temp_bitmap.readPixels(info, bitmap.getPixels(), bitmap.rowBytes(), 0, 0);
|
|
|
| // Align the pattern with the upper corner of |align_rect|.
|
| SkMatrix local_matrix;
|
|
|