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

Unified Diff: skia/ext/skia_utils_mac.mm

Issue 2400873002: keep only one typedef for the native drawing context (Closed)
Patch Set: native_drawing_context.h 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
« no previous file with comments | « skia/ext/platform_surface.h ('k') | ui/base/clipboard/clipboard_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/skia_utils_mac.mm
diff --git a/skia/ext/skia_utils_mac.mm b/skia/ext/skia_utils_mac.mm
index 1718551735087ad478827dc4a95f23f4fbbb9975..9ebdd7a227c8fc65edcd34b46e04a8892e31b246 100644
--- a/skia/ext/skia_utils_mac.mm
+++ b/skia/ext/skia_utils_mac.mm
@@ -193,7 +193,7 @@ SkBitmap CGImageToSkBitmap(CGImageRef image) {
sk_sp<SkCanvas> canvas(skia::CreatePlatformCanvas(
nullptr, width, height, false, RETURN_NULL_ON_FAILURE));
ScopedPlatformPaint p(canvas.get());
- CGContextRef context = p.GetPlatformSurface();
+ CGContextRef context = p.GetNativeDrawingContext();
// We need to invert the y-axis of the canvas so that Core Graphics drawing
// happens right-side up. Skia has an upper-left origin and CG has a lower-
« no previous file with comments | « skia/ext/platform_surface.h ('k') | ui/base/clipboard/clipboard_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698