Changeset 116909 in webkit
- Timestamp:
- May 13, 2012 4:48:25 PM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r116908 r116909 1 2012-05-13 Darin Adler <darin@apple.com> 2 3 Roll out local changes accidentally landed in r116905. 4 5 * platform/graphics/GraphicsContext.h: 6 * platform/graphics/cg/GraphicsContextCG.cpp: 7 * platform/graphics/cg/ImageCG.cpp: 8 1 9 2012-05-13 Rob Buis <rbuis@rim.com> 2 10 -
trunk/Source/WebCore/platform/graphics/GraphicsContext.h
r116905 r116909 263 263 void drawPath(const Path&); 264 264 265 void drawNativeImage( CGImageRef, const FloatSize& selfSize, ColorSpace styleColorSpace, const FloatRect& destRect, const FloatRect& srcRect, CompositeOperator = CompositeSourceOver, ImageOrientation = DefaultImageOrientation);265 void drawNativeImage(NativeImagePtr, const FloatSize& selfSize, ColorSpace styleColorSpace, const FloatRect& destRect, const FloatRect& srcRect, CompositeOperator = CompositeSourceOver, ImageOrientation = DefaultImageOrientation); 266 266 267 267 // Allow font smoothing (LCD antialiasing). Not part of the graphics state. -
trunk/Source/WebCore/platform/graphics/cg/GraphicsContextCG.cpp
r116905 r116909 75 75 76 76 namespace WebCore { 77 78 static RetainPtr<CGImageRef> subimage(CGImageRef image, const FloatRect& rect)79 {80 return adoptCF(CGImageCreateWithImageInRect(image, rect));81 }82 77 83 78 static CGColorSpaceRef createLinearSRGBColorSpace() … … 218 213 adjustedDestRect.setHeight(subimageRect.height() / yScale); 219 214 220 image = subimage(image.get(), subimageRect);215 image.adoptCF(CGImageCreateWithImageInRect(image.get(), subimageRect)); 221 216 if (currHeight < srcRect.maxY()) { 222 217 ASSERT(CGImageGetHeight(image.get()) == currHeight - CGRectIntegral(srcRect).origin.y); -
trunk/Source/WebCore/platform/graphics/cg/ImageCG.cpp
r116907 r116909 193 193 startAnimation(); 194 194 195 CGImageRefimage = frameAtIndex(m_currentFrame);195 RetainPtr<CGImageRef> image = frameAtIndex(m_currentFrame); 196 196 if (!image) // If it's too early we won't have an image yet. 197 197 return; … … 208 208 orientation = frameOrientationAtIndex(m_currentFrame); 209 209 210 ctxt->drawNativeImage(image , selfSize, styleColorSpace, destRect, srcRect, compositeOp, orientation);210 ctxt->drawNativeImage(image.get(), selfSize, styleColorSpace, destRect, srcRect, compositeOp, orientation); 211 211 212 212 if (imageObserver())
Note: See TracChangeset
for help on using the changeset viewer.