Index: Source/WebCore/platform/graphics/skia/ImageSkia.cpp |
=================================================================== |
--- Source/WebCore/platform/graphics/skia/ImageSkia.cpp (revision 113757) |
+++ Source/WebCore/platform/graphics/skia/ImageSkia.cpp (working copy) |
@@ -479,7 +479,8 @@ |
{ |
if (copyPixels) { |
SkBitmap temp; |
- bitmap.copyTo(&temp, bitmap.config()); |
+ if (!bitmap.deepCopyTo(&temp, bitmap.config())) |
+ bitmap.copyTo(&temp, bitmap.config()); |
return adoptRef(new BitmapImageSingleFrameSkia(temp)); |
} |
return adoptRef(new BitmapImageSingleFrameSkia(bitmap)); |