• oliver@apple.com's avatar
    2010-01-31 Oliver Hunt <oliver@apple.com> · efd4fb63
    oliver@apple.com authored
            Reviewed by Simon Fraser.
    
            Animated scaling of background-image is too slow
            https://bugs.webkit.org/show_bug.cgi?id=33808
    
            Update checksum.
    
            * platform/mac/fast/backgrounds/size/backgroundSize16-expected.checksum:
    2010-01-31  Oliver Hunt  <oliver@apple.com>
    
            Reviewed by Simon Fraser.
    
            Animated scaling of background-image is too slow
            https://bugs.webkit.org/show_bug.cgi?id=33808
    
            Implement a version of the RenderImage animated scaling optimisation
            for background images. Due to the possibility of arbitrary transforms
            being applied to containing elements we explicitly check the current
            CTM of the context for scaling or rotation.
    
            * platform/graphics/GraphicsContext.cpp:
            (WebCore::GraphicsContext::drawTiledImage):
            * platform/graphics/GraphicsContext.h:
            * platform/graphics/transforms/TransformationMatrix.h:
            (WebCore::TransformationMatrix::isIdentityOrTranslation):
            * rendering/RenderBoxModelObject.cpp:
            (WebCore::RenderBoxModelScaleData::RenderBoxModelScaleData):
            (WebCore::RenderBoxModelScaleData::~RenderBoxModelScaleData):
            (WebCore::RenderBoxModelScaleData::hiqhQualityRepaintTimer):
            (WebCore::RenderBoxModelScaleData::size):
            (WebCore::RenderBoxModelScaleData::setSize):
            (WebCore::RenderBoxModelScaleData::lastPaintTime):
            (WebCore::RenderBoxModelScaleData::setLastPaintTime):
            (WebCore::RenderBoxModelScaleData::useLowQualityScale):
            (WebCore::RenderBoxModelScaleData::transform):
            (WebCore::RenderBoxModelScaleData::setTransform):
            (WebCore::RenderBoxModelScaleData::setUseLowQualityScale):
            (WebCore::RenderBoxModelScaleObserver::boxModelObjectDestroyed):
            (WebCore::RenderBoxModelScaleObserver::highQualityRepaintTimerFired):
            (WebCore::RenderBoxModelScaleObserver::shouldPaintBackgroundAtLowQuality):
            (WebCore::RenderBoxModelObject::highQualityRepaintTimerFired):
            (WebCore::RenderBoxModelObject::~RenderBoxModelObject):
            (WebCore::RenderBoxModelObject::paintFillLayerExtended):
            * rendering/RenderBoxModelObject.h:
    
    git-svn-id: svn://svn.chromium.org/blink/trunk@54113 bbb929c8-8fbe-4397-9dbb-9b2b20218538
    efd4fb63
ChangeLog 14.3 KB