Chromium Code Reviews| Index: skia/ext/vector_platform_device_emf_win.cc |
| diff --git a/skia/ext/vector_platform_device_emf_win.cc b/skia/ext/vector_platform_device_emf_win.cc |
| index d86ad3df7312b274c7e4087f3b9ad336da9ebaa4..a2dd0b18b1594d9e00efd8fcccda876bb04e2b19 100644 |
| --- a/skia/ext/vector_platform_device_emf_win.cc |
| +++ b/skia/ext/vector_platform_device_emf_win.cc |
| @@ -194,7 +194,7 @@ void VectorPlatformDeviceEmf::drawRect(const SkDraw& draw, |
| if (!ApplyPaint(paint)) { |
| return; |
| } |
| - HDC dc = getBitmapDC(); |
| + HDC dc = beginPlatformPaint(); |
|
Lei Zhang
2011/04/05 00:18:16
ditto here and below
|
| if (!Rectangle(dc, SkScalarRound(rect.fLeft), |
| SkScalarRound(rect.fTop), |
| SkScalarRound(rect.fRight), |
| @@ -226,7 +226,7 @@ void VectorPlatformDeviceEmf::drawPath(const SkDraw& draw, |
| if (!ApplyPaint(paint)) { |
| return; |
| } |
| - HDC dc = getBitmapDC(); |
| + HDC dc = beginPlatformPaint(); |
| PlatformDevice::LoadPathToDC(dc, path); |
| switch (paint.getStyle()) { |
| case SkPaint::kFill_Style: { |
| @@ -632,7 +632,7 @@ void VectorPlatformDeviceEmf::InternalDrawBitmap(const SkBitmap& bitmap, |
| bitmap_header.bV4BlueMask = 0x000000ff; |
| bitmap_header.bV4AlphaMask = 0xff000000; |
| - HDC dc = getBitmapDC(); |
| + HDC dc = beginPlatformPaint(); |
| SkAutoLockPixels lock(bitmap); |
| SkASSERT(bitmap.getConfig() == SkBitmap::kARGB_8888_Config); |
| const uint32_t* pixels = static_cast<const uint32_t*>(bitmap.getPixels()); |