Index: views/controls/menu/menu_item_view_win.cc |
diff --git a/views/controls/menu/menu_item_view_win.cc b/views/controls/menu/menu_item_view_win.cc |
index cea5c4c7cb06dfd2a7782a235f25a4c38f9b9f27..9e04cdc5125625c9c7a1fd31c761d665ef3ef5b9 100644 |
--- a/views/controls/menu/menu_item_view_win.cc |
+++ b/views/controls/menu/menu_item_view_win.cc |
@@ -66,7 +66,7 @@ void MenuItemView::PaintButton(gfx::Canvas* canvas, PaintButtonMode mode) { |
height()); |
AdjustBoundsForRTLUI(&gutter_bounds); |
NativeTheme::ExtraParams extra; |
- NativeTheme::instance()->Paint(canvas->AsCanvasSkia(), |
+ NativeTheme::instance()->Paint(canvas->GetSkCanvas(), |
NativeTheme::kMenuPopupGutter, |
NativeTheme::kNormal, |
gutter_bounds, |
@@ -79,7 +79,7 @@ void MenuItemView::PaintButton(gfx::Canvas* canvas, PaintButtonMode mode) { |
NativeTheme::ExtraParams extra; |
extra.menu_item.is_selected = render_selection; |
AdjustBoundsForRTLUI(&item_bounds); |
- NativeTheme::instance()->Paint(canvas->AsCanvasSkia(), |
+ NativeTheme::instance()->Paint(canvas->GetSkCanvas(), |
NativeTheme::kMenuItemBackground, control_state, item_bounds, extra); |
} |
@@ -144,7 +144,7 @@ void MenuItemView::PaintButton(gfx::Canvas* canvas, PaintButtonMode mode) { |
gfx::NativeTheme::ExtraParams extra; |
extra.menu_arrow.pointing_right = !base::i18n::IsRTL(); |
extra.menu_arrow.is_selected = render_selection; |
- gfx::NativeTheme::instance()->Paint(canvas->AsCanvasSkia(), |
+ gfx::NativeTheme::instance()->Paint(canvas->GetSkCanvas(), |
gfx::NativeTheme::kMenuPopupArrow, control_state, arrow_bounds, extra); |
} |
} |
@@ -174,13 +174,13 @@ void MenuItemView::PaintCheck(gfx::Canvas* canvas, |
// Draw the background. |
gfx::Rect bg_bounds(0, 0, icon_x + icon_width, height()); |
AdjustBoundsForRTLUI(&bg_bounds); |
- NativeTheme::instance()->Paint(canvas->AsCanvasSkia(), |
+ NativeTheme::instance()->Paint(canvas->GetSkCanvas(), |
NativeTheme::kMenuCheckBackground, state, bg_bounds, extra); |
// And the check. |
gfx::Rect icon_bounds(icon_x / 2, icon_y, icon_width, icon_height); |
AdjustBoundsForRTLUI(&icon_bounds); |
- NativeTheme::instance()->Paint(canvas->AsCanvasSkia(), |
+ NativeTheme::instance()->Paint(canvas->GetSkCanvas(), |
NativeTheme::kMenuCheck, state, bg_bounds, extra); |
} |