Chromium Code Reviews| 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 e1db2cc36ca4226abc5fe3d3f18428fd610b749a..47e99be7945fe101626de8d7c2602e18666b653b 100644 |
| --- a/ui/native_theme/native_theme_win.cc |
| +++ b/ui/native_theme/native_theme_win.cc |
| @@ -279,17 +279,7 @@ void NativeThemeWin::Paint(cc::PaintCanvas* canvas, |
| break; |
| } |
| - HDC surface = skia::GetNativeDrawingContext(canvas); |
| - |
| - // When drawing the task manager or the bookmark editor, we draw into an |
| - // offscreen buffer, where we can use OS-specific drawing routines for |
| - // 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 (surface) |
| - PaintDirect(canvas, surface, part, state, rect, extra); |
| - else |
| - PaintIndirect(canvas, part, state, rect, extra); |
| + PaintIndirect(canvas, part, state, rect, extra); |
|
Peter Kasting
2017/02/24 23:10:10
Nit: Now that this call is so simple, I suggest mo
enne (OOO)
2017/02/24 23:23:12
Done.
|
| } |
| NativeThemeWin::NativeThemeWin() |