From a975f03ba77c551e3735762b085a647a9ec88502 Mon Sep 17 00:00:00 2001 From: "tc@google.com" Date: Thu, 16 Oct 2008 05:28:22 +0000 Subject: Wrap some lines that are > 80 columns. Review URL: http://codereview.chromium.org/7158 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3453 0039d316-1c4b-4281-b951-d872f2087c98 --- base/gfx/bitmap_platform_device_win.cc | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'base/gfx') diff --git a/base/gfx/bitmap_platform_device_win.cc b/base/gfx/bitmap_platform_device_win.cc index 2031027..d7150b1 100644 --- a/base/gfx/bitmap_platform_device_win.cc +++ b/base/gfx/bitmap_platform_device_win.cc @@ -223,7 +223,8 @@ void BitmapPlatformDeviceWin::BitmapPlatformDeviceWinData::ReleaseBitmapDC() { hdc_ = NULL; } -bool BitmapPlatformDeviceWin::BitmapPlatformDeviceWinData::IsBitmapDCCreated() const { +bool BitmapPlatformDeviceWin::BitmapPlatformDeviceWinData::IsBitmapDCCreated() + const { return hdc_ != NULL; } @@ -302,21 +303,22 @@ BitmapPlatformDeviceWin* BitmapPlatformDeviceWin::create(HDC screen_dc, } // The device object will take ownership of the HBITMAP. - return new BitmapPlatformDeviceWin(new BitmapPlatformDeviceWinData(hbitmap), bitmap); + return new BitmapPlatformDeviceWin(new BitmapPlatformDeviceWinData(hbitmap), + bitmap); } // The device will own the HBITMAP, which corresponds to also owning the pixel // data. Therefore, we do not transfer ownership to the SkDevice's bitmap. -BitmapPlatformDeviceWin::BitmapPlatformDeviceWin(BitmapPlatformDeviceWinData* data, - const SkBitmap& bitmap) - : PlatformDeviceWin(bitmap), - data_(data) { +BitmapPlatformDeviceWin::BitmapPlatformDeviceWin( + BitmapPlatformDeviceWinData* data, + const SkBitmap& bitmap) : PlatformDeviceWin(bitmap), data_(data) { } // The copy constructor just adds another reference to the underlying data. // We use a const cast since the default Skia definitions don't define the // proper constedness that we expect (accessBitmap should really be const). -BitmapPlatformDeviceWin::BitmapPlatformDeviceWin(const BitmapPlatformDeviceWin& other) +BitmapPlatformDeviceWin::BitmapPlatformDeviceWin( + const BitmapPlatformDeviceWin& other) : PlatformDeviceWin( const_cast(other).accessBitmap(true)), data_(other.data_) { @@ -393,11 +395,13 @@ void BitmapPlatformDeviceWin::drawToHDC(HDC dc, int x, int y, data_->ReleaseBitmapDC(); } -void BitmapPlatformDeviceWin::prepareForGDI(int x, int y, int width, int height) { +void BitmapPlatformDeviceWin::prepareForGDI(int x, int y, int width, + int height) { processPixels(x, y, width, height); } -void BitmapPlatformDeviceWin::postProcessGDI(int x, int y, int width, int height) { +void BitmapPlatformDeviceWin::postProcessGDI(int x, int y, int width, + int height) { processPixels(x, y, width, height); } -- cgit v1.1