diff options
author | piman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-05 19:05:07 +0000 |
---|---|---|
committer | piman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-05 19:05:07 +0000 |
commit | be172ba8194e48970d90e9d873160b259df69b96 (patch) | |
tree | 677a1fedc8a836a42de1dba22d8c0663173a0f96 /views/controls/scrollbar | |
parent | 2c572bd1d4eec134ae40e00adbfa2c9d3d1ff1e7 (diff) | |
download | chromium_src-be172ba8194e48970d90e9d873160b259df69b96.zip chromium_src-be172ba8194e48970d90e9d873160b259df69b96.tar.gz chromium_src-be172ba8194e48970d90e9d873160b259df69b96.tar.bz2 |
Allow CanvasSkia to bind to an existing SkCanvas.
BUG=None
TEST=None
Review URL: http://codereview.chromium.org/8122013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104146 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/controls/scrollbar')
-rw-r--r-- | views/controls/scrollbar/native_scroll_bar_views.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/views/controls/scrollbar/native_scroll_bar_views.cc b/views/controls/scrollbar/native_scroll_bar_views.cc index ac1bc89..f007b50 100644 --- a/views/controls/scrollbar/native_scroll_bar_views.cc +++ b/views/controls/scrollbar/native_scroll_bar_views.cc @@ -98,7 +98,7 @@ void ScrollBarButton::OnPaint(gfx::Canvas* canvas) { gfx::Rect bounds; bounds.set_size(GetPreferredSize()); - native_theme->Paint(canvas->AsCanvasSkia(), + native_theme->Paint(canvas->GetSkCanvas(), GetNativeThemePart(), GetNativeThemeState(), bounds, @@ -183,7 +183,7 @@ gfx::Size ScrollBarThumb::GetPreferredSize() { void ScrollBarThumb::OnPaint(gfx::Canvas* canvas) { const gfx::NativeTheme* native_theme = gfx::NativeTheme::instance(); - native_theme->Paint(canvas->AsCanvasSkia(), + native_theme->Paint(canvas->GetSkCanvas(), GetNativeThemePart(), GetNativeThemeState(), GetLocalBounds(), @@ -302,7 +302,7 @@ void NativeScrollBarViews::OnPaint(gfx::Canvas* canvas) { params_.scrollbar_track.track_height = bounds.height(); - native_theme->Paint(canvas->AsCanvasSkia(), + native_theme->Paint(canvas->GetSkCanvas(), part_, state_, bounds, |