diff options
author | vandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-05 17:17:08 +0000 |
---|---|---|
committer | vandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-05 17:17:08 +0000 |
commit | 49d198eaf7bd7b118fb46b97cc790fdc7b380eee (patch) | |
tree | fb0012720373f1e286e06f8cd0595d44c3452d30 /ui/views/widget | |
parent | 83da5db25bfd45670eca38f0eb9d6a780090447b (diff) | |
download | chromium_src-49d198eaf7bd7b118fb46b97cc790fdc7b380eee.zip chromium_src-49d198eaf7bd7b118fb46b97cc790fdc7b380eee.tar.gz chromium_src-49d198eaf7bd7b118fb46b97cc790fdc7b380eee.tar.bz2 |
rename getBitmapDC to beginPlatformPaint and add calls to endPlatformPaint
This takes a step toward unifying the platform device interface between Windows and Linux and helps to make VectorPlatformDeviceSkia have less ifdefs.
BUG=NONE
TEST=NONE
Review URL: http://codereview.chromium.org/6677142
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80474 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/views/widget')
-rw-r--r-- | ui/views/widget/native_widget_win.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/views/widget/native_widget_win.cc b/ui/views/widget/native_widget_win.cc index 0d2d998..e9c2d2f 100644 --- a/ui/views/widget/native_widget_win.cc +++ b/ui/views/widget/native_widget_win.cc @@ -460,11 +460,12 @@ void NativeWidgetWin::OnPaint(HDC dc) { GetWindowRect(hwnd(), &wr); SIZE size = {wr.right - wr.left, wr.bottom - wr.top}; POINT position = {wr.left, wr.top}; - HDC dib_dc = window_contents_->getTopPlatformDevice().getBitmapDC(); + HDC dib_dc = window_contents_->beginPlatformPaint(); POINT zero = {0, 0}; BLENDFUNCTION blend = {AC_SRC_OVER, 0, 125, AC_SRC_ALPHA}; UpdateLayeredWindow(hwnd(), NULL, &position, &size, dib_dc, &zero, RGB(0xFF, 0xFF, 0xFF), &blend, ULW_ALPHA); + window_contents_->endPlatformPaint(); } else { scoped_ptr<gfx::CanvasPaint> canvas( gfx::CanvasPaint::CreateCanvasPaint(hwnd())); |