⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 179839 in webkit


Ignore:
Timestamp:
Feb 9, 2015, 11:53:28 AM (12 years ago)
Author:
commit-queue@webkit.org
Message:

Unreviewed, rolling out r179494.
https://bugs.webkit.org/show_bug.cgi?id=141395

Caused slowdown in a WebKit client test scenario (Requested by
kling on #webkit).

Reverted changeset:

"[Cocoa] Make decoded image data purgeable ASAP."
https://bugs.webkit.org/show_bug.cgi?id=140298
http://trac.webkit.org/changeset/179494

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r179838 r179839  
     12015-02-09  Commit Queue  <commit-queue@webkit.org>
     2
     3        Unreviewed, rolling out r179494.
     4        https://bugs.webkit.org/show_bug.cgi?id=141395
     5
     6        Caused slowdown in a WebKit client test scenario (Requested by
     7        kling on #webkit).
     8
     9        Reverted changeset:
     10
     11        "[Cocoa] Make decoded image data purgeable ASAP."
     12        https://bugs.webkit.org/show_bug.cgi?id=140298
     13        http://trac.webkit.org/changeset/179494
     14
    1152015-02-09  Jer Noble  <jer.noble@apple.com>
    216
  • trunk/Source/WebCore/platform/graphics/cg/ImageSourceCG.cpp

    r179494 r179839  
    348348    RetainPtr<CGImageRef> image = adoptCF(CGImageSourceCreateImageAtIndex(m_decoder, index, imageSourceOptions(subsamplingLevel).get()));
    349349
    350     CGImageSetCachingFlags(image.get(), kCGImageCachingTransient);
     350#if PLATFORM(IOS)
     351    // <rdar://problem/7371198> - CoreGraphics changed the default caching behaviour in iOS 4.0 to kCGImageCachingTransient
     352    // which caused a performance regression for us since the images had to be resampled/recreated every time we called
     353    // CGContextDrawImage. We now tell CG to cache the drawn images. See also <rdar://problem/14366755> -
     354    // CoreGraphics needs to un-deprecate kCGImageCachingTemporary since it's still not the default.
     355#if COMPILER(CLANG)
     356#pragma clang diagnostic push
     357#pragma clang diagnostic ignored "-Wdeprecated-declarations"
     358#endif
     359    CGImageSetCachingFlags(image.get(), kCGImageCachingTemporary);
     360#if COMPILER(CLANG)
     361#pragma clang diagnostic pop
     362#endif
     363#endif // PLATFORM(IOS)
    351364
    352365    CFStringRef imageUTI = CGImageSourceGetType(m_decoder);
     
    355368    if (!imageUTI)
    356369        return image.leakRef();
     370
     371#if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101000
     372    if (CFEqual(imageUTI, kUTTypeGIF)) {
     373        CGImageSetCachingFlags(image.get(), kCGImageCachingTransient);
     374        return image.leakRef();
     375    }
     376#endif
    357377
    358378    if (!CFEqual(imageUTI, xbmUTI))
Note: See TracChangeset for help on using the changeset viewer.