summaryrefslogtreecommitdiffstats
path: root/skia/ext/canvas_paint_win.h
diff options
context:
space:
mode:
Diffstat (limited to 'skia/ext/canvas_paint_win.h')
-rw-r--r--skia/ext/canvas_paint_win.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/skia/ext/canvas_paint_win.h b/skia/ext/canvas_paint_win.h
index 5fe22fc..478f285 100644
--- a/skia/ext/canvas_paint_win.h
+++ b/skia/ext/canvas_paint_win.h
@@ -62,8 +62,9 @@ class CanvasPaintT : public T {
if (!isEmpty()) {
restoreToCount(1);
// Commit the drawing to the screen
- skia::DrawToNativeContext(this, paint_dc_, ps_.rcPaint.left,
- ps_.rcPaint.top, NULL);
+ getTopPlatformDevice().drawToHDC(paint_dc_,
+ ps_.rcPaint.left, ps_.rcPaint.top,
+ NULL);
}
if (for_paint_)
EndPaint(hwnd_, &ps_);