summaryrefslogtreecommitdiffstats
path: root/base/gfx
diff options
context:
space:
mode:
authortc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-16 05:28:22 +0000
committertc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-16 05:28:22 +0000
commita975f03ba77c551e3735762b085a647a9ec88502 (patch)
treec96b565e887374eddabce9ba18b25d47dc650b6e /base/gfx
parentf2e376defc693600c29f6ff37f57bb91ce6ec1c0 (diff)
downloadchromium_src-a975f03ba77c551e3735762b085a647a9ec88502.zip
chromium_src-a975f03ba77c551e3735762b085a647a9ec88502.tar.gz
chromium_src-a975f03ba77c551e3735762b085a647a9ec88502.tar.bz2
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
Diffstat (limited to 'base/gfx')
-rw-r--r--base/gfx/bitmap_platform_device_win.cc22
1 files changed, 13 insertions, 9 deletions
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<BitmapPlatformDeviceWin&>(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<PrepareAlphaForGDI>(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<PostProcessAlphaForGDI>(x, y, width, height);
}