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