| Index: skia/ext/bitmap_platform_device_win.cc
|
| diff --git a/skia/ext/bitmap_platform_device_win.cc b/skia/ext/bitmap_platform_device_win.cc
|
| index 201866aa17ef79da7cbef12ddd6b75b0e93ea90b..a34b316f11805f6c104e6f0f043db5888c8859bc 100644
|
| --- a/skia/ext/bitmap_platform_device_win.cc
|
| +++ b/skia/ext/bitmap_platform_device_win.cc
|
| @@ -259,7 +259,8 @@ void BitmapPlatformDevice::DrawToNativeContext(HDC dc, int x, int y,
|
| // upper left anymore
|
| SkMatrix identity;
|
| identity.reset();
|
| -
|
| + SkMatrix t = data_->transform();
|
| + if (t.isIdentity()) {
|
| LoadTransformToDC(source_dc, identity);
|
| if (isOpaque()) {
|
| BitBlt(dc,
|
| @@ -287,7 +288,7 @@ void BitmapPlatformDevice::DrawToNativeContext(HDC dc, int x, int y,
|
| blend_function);
|
| }
|
| LoadTransformToDC(source_dc, data_->transform());
|
| -
|
| + }
|
| EndPlatformPaint();
|
| if (created_dc)
|
| data_->ReleaseBitmapDC();
|
|
|