| 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 b792c0fd8758018db66bbfaff581efd40436c6e0..8270be329cc820f64cec2840ea4e42263304d22c 100644
|
| --- a/skia/ext/bitmap_platform_device_win.cc
|
| +++ b/skia/ext/bitmap_platform_device_win.cc
|
| @@ -35,7 +35,6 @@ namespace skia {
|
|
|
| void DrawToNativeContext(SkCanvas* canvas, HDC destination_hdc, int x, int y,
|
| const RECT* src_rect) {
|
| - ScopedPlatformPaint p(canvas);
|
| RECT temp_rect;
|
| if (!src_rect) {
|
| temp_rect.left = 0;
|
| @@ -44,7 +43,7 @@ void DrawToNativeContext(SkCanvas* canvas, HDC destination_hdc, int x, int y,
|
| temp_rect.bottom = canvas->imageInfo().height();
|
| src_rect = &temp_rect;
|
| }
|
| - skia::CopyHDC(p.GetNativeDrawingContext(), destination_hdc, x, y,
|
| + skia::CopyHDC(skia::GetNativeDrawingContext(canvas), destination_hdc, x, y,
|
| canvas->imageInfo().isOpaque(), *src_rect,
|
| canvas->getTotalMatrix());
|
| }
|
|
|