| Index: views/controls/tabbed_pane/native_tabbed_pane_win.cc
|
| ===================================================================
|
| --- views/controls/tabbed_pane/native_tabbed_pane_win.cc (revision 50661)
|
| +++ views/controls/tabbed_pane/native_tabbed_pane_win.cc (working copy)
|
| @@ -10,7 +10,7 @@
|
| #include "app/resource_bundle.h"
|
| #include "base/logging.h"
|
| #include "base/stl_util-inl.h"
|
| -#include "gfx/canvas.h"
|
| +#include "gfx/canvas_skia.h"
|
| #include "gfx/font.h"
|
| #include "gfx/native_theme_win.h"
|
| #include "views/controls/tabbed_pane/tabbed_pane.h"
|
| @@ -36,10 +36,10 @@
|
| virtual ~TabBackground() {}
|
|
|
| virtual void Paint(gfx::Canvas* canvas, View* view) const {
|
| - HDC dc = canvas->beginPlatformPaint();
|
| + HDC dc = canvas->AsCanvasSkia()->beginPlatformPaint();
|
| RECT r = {0, 0, view->width(), view->height()};
|
| gfx::NativeTheme::instance()->PaintTabPanelBackground(dc, &r);
|
| - canvas->endPlatformPaint();
|
| + canvas->AsCanvasSkia()->endPlatformPaint();
|
| }
|
|
|
| private:
|
|
|