Changeset 214241 in webkit
- Timestamp:
- Mar 21, 2017 8:49:50 PM (7 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r214239 r214241 1 2017-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 1 17 2017-03-20 Matt Rajca <mrajca@apple.com> 2 18 -
trunk/Source/WebCore/platform/graphics/BitmapImage.cpp
r214103 r214241 66 66 void BitmapImage::destroyDecodedData(bool destroyAll) 67 67 { 68 LOG(Images, "BitmapImage::%s - %p - url: %s", __FUNCTION__, this, sourceURL().utf8().data()); 69 68 70 if (!destroyAll) 69 71 m_source.destroyDecodedDataBeforeFrame(m_currentFrame); … … 170 172 StartAnimationResult result = internalStartAnimation(); 171 173 if (result == StartAnimationResult::DecodingActive && showDebugBackground()) { 172 fillWithSolidColor(context, destRect, Color ::yellow, op);174 fillWithSolidColor(context, destRect, Color(Color::yellow).colorWithAlpha(0.5), op); 173 175 return; 174 176 } … … 189 191 if (!frameHasDecodedNativeImage(m_currentFrame)) { 190 192 if (showDebugBackground()) 191 fillWithSolidColor(context, destRect, Color ::yellow, op);193 fillWithSolidColor(context, destRect, Color(Color::yellow).colorWithAlpha(0.5), op); 192 194 return; 193 195 }
Note: See TracChangeset
for help on using the changeset viewer.