Changeset 20069 in webkit


Ignore:
Timestamp:
Mar 8, 2007 3:33:43 PM (17 years ago)
Author:
hyatt
Message:

Fix 2% performance regression on the PLT. Increase the large animated
image cutoff from 1MB to 5MB.

In addition when pruning we will aggressively discard image sources.

Reviewed by ggaren

  • platform/graphics/BitmapImage.cpp: (WebCore::BitmapImage::destroyDecodedData):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r20067 r20069  
     12007-03-08  David Hyatt  <hyatt@apple.com>
     2
     3        Fix 2% performance regression on the PLT.  Increase the large animated
     4        image cutoff from 1MB to 5MB.
     5
     6        In addition when pruning we will aggressively discard image sources.
     7
     8        Reviewed by ggaren
     9
     10        * platform/graphics/BitmapImage.cpp:
     11        (WebCore::BitmapImage::destroyDecodedData):
     12
    1132007-03-08  Timothy Hatcher  <timothy@apple.com>
    214
  • trunk/WebCore/platform/graphics/BitmapImage.cpp

    r20056 r20069  
    3838namespace WebCore {
    3939
    40 // Animated images >1MB are considered large enough that we'll only hang on to
     40// Animated images >5MB are considered large enough that we'll only hang on to
    4141// one frame at a time.
    42 const unsigned cLargeAnimationCutoff = 1048576;
     42const unsigned cLargeAnimationCutoff = 5242880;
    4343
    4444BitmapImage::BitmapImage(ImageObserver* observer)
     
    9393        }
    9494       
    95         if (!incremental && frameCount() * frameSize > cLargeAnimationCutoff) {
     95        if (!incremental) {
    9696            // Reset the image source, since Image I/O has an underlying cache that it uses
    9797            // while animating that it seems to never clear.
Note: See TracChangeset for help on using the changeset viewer.