[Webkit-unassigned] [Bug 156766] New: REGRESSION(198782): ImageSource calls calculateMaximumSubsamplingLevel every time it is called for subsamplingLevelForScale
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Apr 19 15:43:32 PDT 2016
https://bugs.webkit.org/show_bug.cgi?id=156766
Bug ID: 156766
Summary: REGRESSION(198782): ImageSource calls
calculateMaximumSubsamplingLevel every time it is
called for subsamplingLevelForScale
Classification: Unclassified
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Images
Assignee: webkit-unassigned at lists.webkit.org
Reporter: sabouhallawa at apple.com
Calling ImageSource::calculateMaximumSubsamplingLevel() every time ImageSource::subsamplingLevelForScale() is called is expensive because it requires fetching the first frame for up to three subsampling level. Prior to r198782, ImageSource::calculateMaximumSubsamplingLevel() (which was named BitmapImage::determineMinimumSubsamplingLevel()) was called only once from BitmapImage::updateSize(). The fix should be to cache the maximumSubsamplingLevel when the image size is available.+
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160419/227be7ee/attachment.html>
More information about the webkit-unassigned
mailing list