Title: [204205] trunk/Source/WebCore
- Revision
- 204205
- Author
- simon.fra...@apple.com
- Date
- 2016-08-05 17:32:03 -0700 (Fri, 05 Aug 2016)
Log Message
Add a tiny bit more image logging
https://bugs.webkit.org/show_bug.cgi?id=160621
Reviewed by Tim Horton.
Add logging related to image subsampling.
* platform/graphics/BitmapImage.cpp:
(WebCore::BitmapImage::frameImageAtIndex):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (204204 => 204205)
--- trunk/Source/WebCore/ChangeLog 2016-08-06 00:01:45 UTC (rev 204204)
+++ trunk/Source/WebCore/ChangeLog 2016-08-06 00:32:03 UTC (rev 204205)
@@ -1,3 +1,15 @@
+2016-08-05 Simon Fraser <simon.fra...@apple.com>
+
+ Add a tiny bit more image logging
+ https://bugs.webkit.org/show_bug.cgi?id=160621
+
+ Reviewed by Tim Horton.
+
+ Add logging related to image subsampling.
+
+ * platform/graphics/BitmapImage.cpp:
+ (WebCore::BitmapImage::frameImageAtIndex):
+
2016-08-05 Nan Wang <n_w...@apple.com>
AX: Asking for group members of radio button that has no name attribute will cause crash
Modified: trunk/Source/WebCore/platform/graphics/BitmapImage.cpp (204204 => 204205)
--- trunk/Source/WebCore/platform/graphics/BitmapImage.cpp 2016-08-06 00:01:45 UTC (rev 204204)
+++ trunk/Source/WebCore/platform/graphics/BitmapImage.cpp 2016-08-06 00:32:03 UTC (rev 204205)
@@ -385,10 +385,14 @@
return nullptr;
SubsamplingLevel subsamplingLevel = m_source.subsamplingLevelForScale(presentationScaleHint);
+
+ LOG(Images, "BitmapImage %p frameImageAtIndex - subsamplingLevel %d at scale %.4f", this, subsamplingLevel, presentationScaleHint);
// We may have cached a frame with a higher subsampling level, in which case we need to
// re-decode with a lower level.
if (index < m_frames.size() && m_frames[index].m_image && subsamplingLevel < m_frames[index].m_subsamplingLevel) {
+ LOG(Images, " subsamplingLevel was %d, resampling", m_frames[index].m_subsamplingLevel);
+
// If the image is already cached, but at too small a size, re-decode a larger version.
int sizeChange = -m_frames[index].m_frameBytes;
m_frames[index].clear(true);
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes