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

Unified Diff: ui/gfx/canvas_paint_mac.mm

Issue 2613583002: Remove skia::ScopedPlatformPaint (Closed)
Patch Set: Created 3 years, 12 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 | « ui/base/clipboard/clipboard_win.cc ('k') | ui/native_theme/native_theme_win.cc » ('j') | 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 f29a6afa4eb05594b1b39a25ac9d113b80690f5c..9d2bbb30d2f4c65c81c41405f137eec60f00eede 100644
--- a/ui/gfx/canvas_paint_mac.mm
+++ b/ui/gfx/canvas_paint_mac.mm
@@ -25,9 +25,8 @@ CanvasSkiaPaint::~CanvasSkiaPaint() {
canvas->restoreToCount(1);
// Blit the dirty rect to the current context.
- skia::ScopedPlatformPaint spp(canvas);
CGImageRef image =
- CGBitmapContextCreateImage(spp.GetNativeDrawingContext());
+ CGBitmapContextCreateImage(skia::GetNativeDrawingContext(canvas));
CGRect dest_rect = NSRectToCGRect(rectangle_);
CGContextRef destination_context =
« no previous file with comments | « ui/base/clipboard/clipboard_win.cc ('k') | ui/native_theme/native_theme_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698