Don't use the CreateWithData variant: not needed, and isn't available in chrome



git-svn-id: http://skia.googlecode.com/svn/trunk@1763 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/utils/mac/SkCreateCGImageRef.cpp b/src/utils/mac/SkCreateCGImageRef.cpp
index d41de18..4a098b1 100644
--- a/src/utils/mac/SkCreateCGImageRef.cpp
+++ b/src/utils/mac/SkCreateCGImageRef.cpp
@@ -196,12 +196,13 @@
     size_t bitsPerComponent;
     CGBitmapInfo info;
     getBitmapInfo(bitmap, &bitsPerComponent, &info, NULL); 
-    
-    CGContextRef ctx = CGBitmapContextCreateWithData(bitmap.getPixels(),
-                                                     w, h, bitsPerComponent,
-                                                     bitmap.rowBytes(),
-                                                     CGColorSpaceCreateDeviceRGB(),
-                                                     info, NULL, NULL);
+
+    CGColorSpaceRef cs = CGColorSpaceCreateDeviceRGB();
+    CGContextRef ctx = CGBitmapContextCreate(bitmap.getPixels(), w, h,
+                                             bitsPerComponent, bitmap.rowBytes(),
+                                             cs, info);
+    CGColorSpaceRelease(cs);
+
     if (ctx) {
         CGContextDrawPDFPage(ctx, page);
         CGContextRelease(ctx);