summaryrefslogtreecommitdiffstats
path: root/ui/gfx/native_theme_win.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ui/gfx/native_theme_win.cc')
-rw-r--r--ui/gfx/native_theme_win.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/ui/gfx/native_theme_win.cc b/ui/gfx/native_theme_win.cc
index ba33651..bb0ad558 100644
--- a/ui/gfx/native_theme_win.cc
+++ b/ui/gfx/native_theme_win.cc
@@ -132,7 +132,8 @@ void NativeThemeWin::Paint(SkCanvas* canvas,
State state,
const gfx::Rect& rect,
const ExtraParams& extra) const {
- HDC hdc = skia::BeginPlatformPaint(canvas);
+ skia::ScopedPlatformPaint scoped_platform_paint(canvas);
+ HDC hdc = scoped_platform_paint.GetPlatformSurface();
switch (part) {
case kCheckbox:
@@ -212,8 +213,6 @@ void NativeThemeWin::Paint(SkCanvas* canvas,
// unsupported parts will DCHECK here.
DCHECK(false);
}
-
- skia::EndPlatformPaint(canvas);
}
HRESULT NativeThemeWin::PaintScrollbarArrow(