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