diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-30 22:02:11 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-30 22:02:11 +0000 |
commit | b9527d57c08210ca3273633048445722b3244357 (patch) | |
tree | 155a1add971e8d8fbc24b866d0a3bdc318f5f468 /views/window | |
parent | 937105b42b6f50d9a29aa7180b939324da80911e (diff) | |
download | chromium_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 'views/window')
-rw-r--r-- | views/window/dialog_client_view.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/views/window/dialog_client_view.cc b/views/window/dialog_client_view.cc index 4f40987..bbc7672 100644 --- a/views/window/dialog_client_view.cc +++ b/views/window/dialog_client_view.cc @@ -418,7 +418,7 @@ void DialogClientView::PaintSizeBox(gfx::Canvas* canvas) { if (window()->GetDelegate()->CanResize() || window()->GetDelegate()->CanMaximize()) { #if defined(OS_WIN) - HDC dc = canvas->AsCanvasSkia()->beginPlatformPaint(); + HDC dc = canvas->BeginPlatformPaint(); SIZE gripper_size = { 0, 0 }; gfx::NativeTheme::instance()->GetThemePartSize( gfx::NativeTheme::STATUS, dc, SP_GRIPPER, 1, NULL, TS_TRUE, @@ -434,7 +434,7 @@ void DialogClientView::PaintSizeBox(gfx::Canvas* canvas) { RECT native_bounds = size_box_bounds_.ToRECT(); gfx::NativeTheme::instance()->PaintStatusGripper( dc, SP_PANE, 1, 0, &native_bounds); - canvas->AsCanvasSkia()->endPlatformPaint(); + canvas->EndPlatformPaint(); #else NOTIMPLEMENTED(); // TODO(port): paint size box |