summaryrefslogtreecommitdiffstats
path: root/skia/ext/skia_utils_mac.mm
diff options
context:
space:
mode:
authordcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-17 19:25:36 +0000
committerdcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-17 19:25:36 +0000
commitace802341456e24de9091f5cc7ae9b38525e60e6 (patch)
treea6551f94be55b69cf3fea517baa6dbf530dcbb99 /skia/ext/skia_utils_mac.mm
parent87ab8d1163b51008cc3e21d9b7b792c6d48dfa23 (diff)
downloadchromium_src-ace802341456e24de9091f5cc7ae9b38525e60e6.zip
chromium_src-ace802341456e24de9091f5cc7ae9b38525e60e6.tar.gz
chromium_src-ace802341456e24de9091f5cc7ae9b38525e60e6.tar.bz2
Revert "Try to fix Crash at gfx::CGImageToSkBitmap."
The review for the original patch is http://codereview.chromium.org/3352014; unfortunately, the original patch didn't address the root cause of the crash. Now that the WebKit fix is checked in, we no longer need this change. BUG=54880 TEST=none Review URL: http://codereview.chromium.org/3393004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59831 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia/ext/skia_utils_mac.mm')
-rw-r--r--skia/ext/skia_utils_mac.mm2
1 files changed, 0 insertions, 2 deletions
diff --git a/skia/ext/skia_utils_mac.mm b/skia/ext/skia_utils_mac.mm
index 177004e..a913587 100644
--- a/skia/ext/skia_utils_mac.mm
+++ b/skia/ext/skia_utils_mac.mm
@@ -92,8 +92,6 @@ SkBitmap CGImageToSkBitmap(CGImageRef image) {
scoped_ptr<skia::BitmapPlatformDevice> device(
skia::BitmapPlatformDevice::Create(NULL, width, height, false));
- if (!device.get())
- return SkBitmap();
CGContextRef context = device->GetBitmapContext();