Title: [106860] trunk/Source/WebCore/platform/graphics/cg/ImageBufferCG.cpp
- Revision
- 106860
- Author
- [email protected]
- Date
- 2012-02-06 15:08:52 -0800 (Mon, 06 Feb 2012)
Log Message
Windows build fix
Modified Paths
Diff
Modified: trunk/Source/WebCore/platform/graphics/cg/ImageBufferCG.cpp (106859 => 106860)
--- trunk/Source/WebCore/platform/graphics/cg/ImageBufferCG.cpp 2012-02-06 23:02:17 UTC (rev 106859)
+++ trunk/Source/WebCore/platform/graphics/cg/ImageBufferCG.cpp 2012-02-06 23:08:52 UTC (rev 106860)
@@ -314,6 +314,7 @@
return;
}
+#if USE(IOSURFACE_CANVAS_BACKING_STORE)
// Make a copy of the source to ensure the bits don't change before being drawn
IntSize sourceCopySize(sourceRect.width(), sourceRect.height());
OwnPtr<ImageBuffer> sourceCopy = ImageBuffer::create(sourceCopySize, ColorSpaceDeviceRGB, Unaccelerated);
@@ -337,6 +338,7 @@
RetainPtr<CGImageRef> sourceCopyImage(AdoptCF, sourceCopy->copyNativeImage());
CGContextDrawImage(destContext, destRectInCGCoords, sourceCopyImage.get());
CGContextRestoreGState(destContext);
+#endif
}
static inline CFStringRef jpegUTI()
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes