Changeset 179858 in webkit
- Timestamp:
- Feb 9, 2015, 4:43:57 PM (12 years ago)
- Location:
- tags/Safari-601.1.17.1/Source/WebCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
platform/graphics/cg/ImageSourceCG.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tags/Safari-601.1.17.1/Source/WebCore/ChangeLog
r179653 r179858 1 2015-02-09 Babak Shafiei <bshafiei@apple.com> 2 3 Merge r179839. 4 5 2015-02-09 Commit Queue <commit-queue@webkit.org> 6 7 Unreviewed, rolling out r179494. 8 https://bugs.webkit.org/show_bug.cgi?id=141395 9 10 Caused slowdown in a WebKit client test scenario (Requested by 11 kling on #webkit). 12 13 Reverted changeset: 14 15 "[Cocoa] Make decoded image data purgeable ASAP." 16 https://bugs.webkit.org/show_bug.cgi?id=140298 17 http://trac.webkit.org/changeset/179494 18 1 19 2015-02-04 Eric Carlson <eric.carlson@apple.com> 2 20 -
tags/Safari-601.1.17.1/Source/WebCore/platform/graphics/cg/ImageSourceCG.cpp
r179494 r179858 348 348 RetainPtr<CGImageRef> image = adoptCF(CGImageSourceCreateImageAtIndex(m_decoder, index, imageSourceOptions(subsamplingLevel).get())); 349 349 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) 351 364 352 365 CFStringRef imageUTI = CGImageSourceGetType(m_decoder); … … 355 368 if (!imageUTI) 356 369 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 357 377 358 378 if (!CFEqual(imageUTI, xbmUTI))
Note:
See TracChangeset
for help on using the changeset viewer.