| Index: ui/gfx/skbitmap_operations.cc
|
| diff --git a/ui/gfx/skbitmap_operations.cc b/ui/gfx/skbitmap_operations.cc
|
| index a12ef83f5b2fec4be1467e9c8eef71fbb44fd996..7d16bff29c9d4ca4ab23142f1274b85364aaa957 100644
|
| --- a/ui/gfx/skbitmap_operations.cc
|
| +++ b/ui/gfx/skbitmap_operations.cc
|
| @@ -757,6 +757,9 @@ SkBitmap SkBitmapOperations::CreateDropShadow(
|
| // static
|
| SkBitmap SkBitmapOperations::Rotate(const SkBitmap& source,
|
| RotationAmount rotation) {
|
| + // SkCanvas::drawBitmap() fails silently with unpremultiplied SkBitmap.
|
| + DCHECK_NE(source.info().alphaType(), kUnpremul_SkAlphaType);
|
| +
|
| SkBitmap result;
|
| SkScalar angle = SkFloatToScalar(0.0f);
|
|
|
|
|