Changeset 116909 in webkit


Ignore:
Timestamp:
May 13, 2012 4:48:25 PM (12 years ago)
Author:
Darin Adler
Message:

Roll out local changes accidentally landed in r116905.

  • platform/graphics/GraphicsContext.h:
  • platform/graphics/cg/GraphicsContextCG.cpp:
  • platform/graphics/cg/ImageCG.cpp:
Location:
trunk/Source/WebCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r116908 r116909  
     12012-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
    192012-05-13  Rob Buis  <rbuis@rim.com>
    210
  • trunk/Source/WebCore/platform/graphics/GraphicsContext.h

    r116905 r116909  
    263263        void drawPath(const Path&);
    264264
    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);
    266266
    267267        // Allow font smoothing (LCD antialiasing). Not part of the graphics state.
  • trunk/Source/WebCore/platform/graphics/cg/GraphicsContextCG.cpp

    r116905 r116909  
    7575
    7676namespace WebCore {
    77 
    78 static RetainPtr<CGImageRef> subimage(CGImageRef image, const FloatRect& rect)
    79 {
    80     return adoptCF(CGImageCreateWithImageInRect(image, rect));
    81 }
    8277   
    8378static CGColorSpaceRef createLinearSRGBColorSpace()
     
    218213            adjustedDestRect.setHeight(subimageRect.height() / yScale);
    219214
    220             image = subimage(image.get(), subimageRect);
     215            image.adoptCF(CGImageCreateWithImageInRect(image.get(), subimageRect));
    221216            if (currHeight < srcRect.maxY()) {
    222217                ASSERT(CGImageGetHeight(image.get()) == currHeight - CGRectIntegral(srcRect).origin.y);
  • trunk/Source/WebCore/platform/graphics/cg/ImageCG.cpp

    r116907 r116909  
    193193    startAnimation();
    194194
    195     CGImageRef image = frameAtIndex(m_currentFrame);
     195    RetainPtr<CGImageRef> image = frameAtIndex(m_currentFrame);
    196196    if (!image) // If it's too early we won't have an image yet.
    197197        return;
     
    208208        orientation = frameOrientationAtIndex(m_currentFrame);
    209209
    210     ctxt->drawNativeImage(image, selfSize, styleColorSpace, destRect, srcRect, compositeOp, orientation);
     210    ctxt->drawNativeImage(image.get(), selfSize, styleColorSpace, destRect, srcRect, compositeOp, orientation);
    211211
    212212    if (imageObserver())
Note: See TracChangeset for help on using the changeset viewer.