Index: ui/gfx/native_theme_win.cc |
=================================================================== |
--- ui/gfx/native_theme_win.cc (revision 85945) |
+++ ui/gfx/native_theme_win.cc (working copy) |
@@ -132,7 +132,8 @@ |
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 @@ |
// unsupported parts will DCHECK here. |
DCHECK(false); |
} |
- |
- skia::EndPlatformPaint(canvas); |
} |
HRESULT NativeThemeWin::PaintScrollbarArrow( |