Index: skia/ext/vector_canvas_unittest.cc |
=================================================================== |
--- skia/ext/vector_canvas_unittest.cc (revision 85672) |
+++ skia/ext/vector_canvas_unittest.cc (working copy) |
@@ -99,7 +99,7 @@ |
Image(const skia::PlatformCanvas& canvas) : ignore_alpha_(true) { |
// Use a different way to access the bitmap. The normal way would be to |
// query the SkBitmap. |
- HDC context = canvas.beginPlatformPaint(); |
+ HDC context = skia::BeginPlatformPaint(&canvas); |
HGDIOBJ bitmap = GetCurrentObject(context, OBJ_BITMAP); |
EXPECT_TRUE(bitmap != NULL); |
// Initialize the clip region to the entire bitmap. |
@@ -111,7 +111,7 @@ |
size_t size = row_length_ * height_; |
data_.resize(size); |
memcpy(&*data_.begin(), bitmap_data.bmBits, size); |
- canvas.endPlatformPaint(); |
+ skia::EndPlatformPaint(&canvas); |
} |
// Loads the image from a canvas. |