Changeset 214241 in webkit


Ignore:
Timestamp:
Mar 21, 2017 8:49:50 PM (7 years ago)
Author:
Simon Fraser
Message:

Make non-decoded image flashing less intrusive
https://bugs.webkit.org/show_bug.cgi?id=169942

Reviewed by Said Abou-Hallawa.

When compositing borders are enabled, we paint yellow for images that paint but don't yet have a decoded
frame. Give this yellow 50% alpha to make it less intrusive

Also log to the images log channel when we destroy decoded data.

  • platform/graphics/BitmapImage.cpp:

(WebCore::BitmapImage::destroyDecodedData):
(WebCore::BitmapImage::draw):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r214239 r214241  
     12017-03-21  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Make non-decoded image flashing less intrusive
     4        https://bugs.webkit.org/show_bug.cgi?id=169942
     5
     6        Reviewed by Said Abou-Hallawa.
     7
     8        When compositing borders are enabled, we paint yellow for images that paint but don't yet have a decoded
     9        frame. Give this yellow 50% alpha to make it less intrusive
     10
     11        Also log to the images log channel when we destroy decoded data.
     12
     13        * platform/graphics/BitmapImage.cpp:
     14        (WebCore::BitmapImage::destroyDecodedData):
     15        (WebCore::BitmapImage::draw):
     16
    1172017-03-20  Matt Rajca  <mrajca@apple.com>
    218
  • trunk/Source/WebCore/platform/graphics/BitmapImage.cpp

    r214103 r214241  
    6666void BitmapImage::destroyDecodedData(bool destroyAll)
    6767{
     68    LOG(Images, "BitmapImage::%s - %p - url: %s", __FUNCTION__, this, sourceURL().utf8().data());
     69
    6870    if (!destroyAll)
    6971        m_source.destroyDecodedDataBeforeFrame(m_currentFrame);
     
    170172    StartAnimationResult result = internalStartAnimation();
    171173    if (result == StartAnimationResult::DecodingActive && showDebugBackground()) {
    172         fillWithSolidColor(context, destRect, Color::yellow, op);
     174        fillWithSolidColor(context, destRect, Color(Color::yellow).colorWithAlpha(0.5), op);
    173175        return;
    174176    }
     
    189191            if (!frameHasDecodedNativeImage(m_currentFrame)) {
    190192                if (showDebugBackground())
    191                     fillWithSolidColor(context, destRect, Color::yellow, op);
     193                    fillWithSolidColor(context, destRect, Color(Color::yellow).colorWithAlpha(0.5), op);
    192194                return;
    193195            }
Note: See TracChangeset for help on using the changeset viewer.