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, 2 insertions, 3 deletions
diff --git a/skia/ext/canvas_paint_win.h b/skia/ext/canvas_paint_win.h
index 478f285..5fe22fc 100644
--- a/skia/ext/canvas_paint_win.h
+++ b/skia/ext/canvas_paint_win.h
@@ -62,9 +62,8 @@ class CanvasPaintT : public T {
if (!isEmpty()) {
restoreToCount(1);
// Commit the drawing to the screen
- getTopPlatformDevice().drawToHDC(paint_dc_,
- ps_.rcPaint.left, ps_.rcPaint.top,
- NULL);
+ skia::DrawToNativeContext(this, paint_dc_, ps_.rcPaint.left,
+ ps_.rcPaint.top, NULL);
}
if (for_paint_)
EndPaint(hwnd_, &ps_);