summaryrefslogtreecommitdiffstats
path: root/skia
diff options
context:
space:
mode:
authorbrettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-11 20:55:38 +0000
committerbrettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-11 20:55:38 +0000
commit96eefd3239d1ba18c4000475c1da2f0cd590e3c8 (patch)
tree169123dd6fa023299bf16d43542c262436d1e6df /skia
parent6a6ccee4e22baae35e4aa595cd24c738fdb2b380 (diff)
downloadchromium_src-96eefd3239d1ba18c4000475c1da2f0cd590e3c8.zip
chromium_src-96eefd3239d1ba18c4000475c1da2f0cd590e3c8.tar.gz
chromium_src-96eefd3239d1ba18c4000475c1da2f0cd590e3c8.tar.bz2
Remove misleading comment - we no longer crash when CreateDIBSection() fails,
just return null Also remove unused GetLastError() call; no error is being returned anyway. R=brettw BUG=http://crbug.com/10977 TEST=none Original review: http://codereview.chromium.org/120006 Patch by dpranke@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18195 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia')
-rw-r--r--skia/ext/bitmap_platform_device_win.cc6
1 files changed, 0 insertions, 6 deletions
diff --git a/skia/ext/bitmap_platform_device_win.cc b/skia/ext/bitmap_platform_device_win.cc
index fb39148..ecd609f 100644
--- a/skia/ext/bitmap_platform_device_win.cc
+++ b/skia/ext/bitmap_platform_device_win.cc
@@ -199,13 +199,7 @@ BitmapPlatformDeviceWin* BitmapPlatformDeviceWin::create(
reinterpret_cast<BITMAPINFO*>(&hdr), 0,
&data,
shared_section, 0);
-
- // If we run out of GDI objects or some other error occurs, we won't get a
- // bitmap here. This will cause us to crash later because the data pointer is
- // NULL. To make sure that we can assign blame for those crashes to this code,
- // we deliberately crash here, even in release mode.
if (!hbitmap) {
- DWORD error = GetLastError();
return NULL;
}