[Webkit-unassigned] [Bug 156945] New: [CG] REGRESSION (r198782): CGImageSourceCopyPropertiesAtIndex() is called twice when calculating the size of an Image
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Apr 22 21:02:52 PDT 2016
https://bugs.webkit.org/show_bug.cgi?id=156945
Bug ID: 156945
Summary: [CG] REGRESSION (r198782):
CGImageSourceCopyPropertiesAtIndex() is called twice
when calculating the size of an Image
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
Prior to change r198782, ImageSource was actually the decoder. ImageSource::frameSizeAtIndex() was calculating the size without calling ImageSource::orientationAtIndex(). Instead it was making a single call to CGImageSourceCopyPropertiesAtIndex() and it was using the returned properties to calculate the size and the orientation. Currently ImageSource::frameSizeAtIndex() calls ImageDecoder::frameSizeAtIndex() and ImageDecoder::orientationAtIndex(). Each of these functions makes a call to CGImageSourceCopyPropertiesAtIndex().
Notice: To get the size of an image, BitmapImage::updateSize() calls ImageSource::size() and ImageSource::sizeRespectingOrientation(). Each of these functions calls ImageSource::frameSizeAtIndex(0).-
--
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/20160423/939942a4/attachment.html>
More information about the webkit-unassigned
mailing list