summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/list_background.h
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-30 22:02:11 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-30 22:02:11 +0000
commitb9527d57c08210ca3273633048445722b3244357 (patch)
tree155a1add971e8d8fbc24b866d0a3bdc318f5f468 /chrome/browser/views/list_background.h
parent937105b42b6f50d9a29aa7180b939324da80911e (diff)
downloadchromium_src-b9527d57c08210ca3273633048445722b3244357.zip
chromium_src-b9527d57c08210ca3273633048445722b3244357.tar.gz
chromium_src-b9527d57c08210ca3273633048445722b3244357.tar.bz2
Canvas refactoring phase 4b:
Add BeginPlatformPaint/EndPlatformPaint calls to gfx::Canvas. BeginPlatformPaint() returns a gfx::NativeDrawingContext. BUG=none TEST=none Review URL: http://codereview.chromium.org/2840029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51297 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/list_background.h')
-rw-r--r--chrome/browser/views/list_background.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/views/list_background.h b/chrome/browser/views/list_background.h
index fb10067..5c54f6e 100644
--- a/chrome/browser/views/list_background.h
+++ b/chrome/browser/views/list_background.h
@@ -22,10 +22,10 @@ class ListBackground : public views::Background {
virtual ~ListBackground() {}
virtual void Paint(gfx::Canvas* canvas, views::View* view) const {
- HDC dc = canvas->AsCanvasSkia()->beginPlatformPaint();
+ HDC dc = canvas->BeginPlatformPaint();
RECT native_lb = view->GetLocalBounds(true).ToRECT();
gfx::NativeTheme::instance()->PaintListBackground(dc, true, &native_lb);
- canvas->AsCanvasSkia()->endPlatformPaint();
+ canvas->EndPlatformPaint();
}
private: