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

Unified Diff: ui/gfx/canvas_paint_mac.mm

Issue 2607603004: Remove PlatformCanvas::GetBitmapContext() (Closed)
Patch Set: Mac build fix Created 4 years 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_device_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/canvas_paint_mac.mm
diff --git a/ui/gfx/canvas_paint_mac.mm b/ui/gfx/canvas_paint_mac.mm
index 29fdfe5ecf8b01855d31a46345d9d00f7b1961cf..f29a6afa4eb05594b1b39a25ac9d113b80690f5c 100644
--- a/ui/gfx/canvas_paint_mac.mm
+++ b/ui/gfx/canvas_paint_mac.mm
@@ -25,8 +25,9 @@ CanvasSkiaPaint::~CanvasSkiaPaint() {
canvas->restoreToCount(1);
// Blit the dirty rect to the current context.
+ skia::ScopedPlatformPaint spp(canvas);
CGImageRef image =
- CGBitmapContextCreateImage(skia::GetBitmapContext(*canvas));
+ CGBitmapContextCreateImage(spp.GetNativeDrawingContext());
CGRect dest_rect = NSRectToCGRect(rectangle_);
CGContextRef destination_context =
« no previous file with comments | « skia/ext/platform_device_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698