Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(226)

Unified Diff: skia/ext/bitmap_platform_device_win.cc

Issue 2400873002: keep only one typedef for the native drawing context (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 735a0d8479b09ae5924d9b2adbd5978efc9b90e5..4687c920b32c060f6e0224a64e0ee4bc502b9cea 100644
--- a/skia/ext/bitmap_platform_device_win.cc
+++ b/skia/ext/bitmap_platform_device_win.cc
@@ -44,7 +44,7 @@ void DrawToNativeContext(SkCanvas* canvas, HDC destination_hdc, int x, int y,
temp_rect.bottom = canvas->imageInfo().height();
src_rect = &temp_rect;
}
- skia::CopyHDC(p.GetPlatformSurface(), destination_hdc, x, y,
+ skia::CopyHDC(p.GetNativeDrawingContext(), destination_hdc, x, y,
canvas->imageInfo().isOpaque(), *src_rect,
canvas->getTotalMatrix());
}

Powered by Google App Engine
This is Rietveld 408576698