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

Unified Diff: ui/native_theme/native_theme_win.cc

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/gfx/canvas_paint_mac.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/native_theme/native_theme_win.cc
diff --git a/ui/native_theme/native_theme_win.cc b/ui/native_theme/native_theme_win.cc
index e811036b3a34af0cf0a457ddb396159a29ea4886..46108aad1e5b86da7cdd1abf5949e10d4d7a477c 100644
--- a/ui/native_theme/native_theme_win.cc
+++ b/ui/native_theme/native_theme_win.cc
@@ -278,8 +278,7 @@ void NativeThemeWin::Paint(SkCanvas* canvas,
break;
}
- skia::ScopedPlatformPaint paint(canvas);
- HDC surface = paint.GetNativeDrawingContext();
+ HDC surface = skia::GetNativeDrawingContext(canvas);
// When drawing the task manager or the bookmark editor, we draw into an
// offscreen buffer, where we can use OS-specific drawing routines for
« no previous file with comments | « ui/gfx/canvas_paint_mac.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698