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 c812e84ca17f541c1680c82cf4da76e167cfcf1c..5120b2eb0bf09997fffc6cd89a68eeabb218bdb4 100644 |
--- a/skia/ext/bitmap_platform_device_win.cc |
+++ b/skia/ext/bitmap_platform_device_win.cc |
@@ -1,4 +1,4 @@ |
-// Copyright (c) 2010 The Chromium Authors. All rights reserved. |
+// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
@@ -201,7 +201,7 @@ BitmapPlatformDevice& BitmapPlatformDevice::operator=( |
return *this; |
} |
-HDC BitmapPlatformDevice::getBitmapDC() { |
+HDC BitmapPlatformDevice::beginPlatformPaint() { |
return data_->GetBitmapDC(); |
} |
@@ -214,7 +214,7 @@ void BitmapPlatformDevice::setMatrixClip(const SkMatrix& transform, |
void BitmapPlatformDevice::drawToHDC(HDC dc, int x, int y, |
const RECT* src_rect) { |
bool created_dc = !data_->IsBitmapDCCreated(); |
- HDC source_dc = getBitmapDC(); |
+ HDC source_dc = beginPlatformPaint(); |
Lei Zhang
2011/04/05 00:18:16
do you need a matching endPlatformPaint() somewher
|
RECT temp_rect; |
if (!src_rect) { |