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 46108aad1e5b86da7cdd1abf5949e10d4d7a477c..af86e79dd77b975ba092e0b63651dcc383a3be0a 100644 |
--- a/ui/native_theme/native_theme_win.cc |
+++ b/ui/native_theme/native_theme_win.cc |
@@ -285,10 +285,10 @@ void NativeThemeWin::Paint(SkCanvas* canvas, |
// UI features like scrollbars. However, we need to set up that buffer, |
// and then read it back when it's done and blit it onto the screen. |
- if (skia::SupportsPlatformPaint(canvas)) |
+ if (surface) |
PaintDirect(canvas, surface, part, state, rect, extra); |
else |
- PaintIndirect(canvas, surface, part, state, rect, extra); |
+ PaintIndirect(canvas, part, state, rect, extra); |
} |
NativeThemeWin::NativeThemeWin() |
@@ -673,7 +673,6 @@ SkColor NativeThemeWin::GetSystemColor(ColorId color_id) const { |
} |
void NativeThemeWin::PaintIndirect(SkCanvas* destination_canvas, |
- HDC destination_hdc, |
Part part, |
State state, |
const gfx::Rect& rect, |