[Webkit-unassigned] [Bug 200726] New: [iOS](REGRESSION: r200487): Get the CGImage pixels by drawing it into a memory context
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Aug 14 11:46:42 PDT 2019
https://bugs.webkit.org/show_bug.cgi?id=200726
Bug ID: 200726
Summary: [iOS](REGRESSION: r200487): Get the CGImage pixels by
drawing it into a memory context
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
The API test WebKit.RequestActivatedElementInfoForRotatedImage has been failing on iOS 13. It fails because it gets the image pixels by copying the data of the image data provider. I mistakenly was assuming that the data provider has to be point directly to pixels data which is not necessarily true. The iOS 13 underlying components have changed such that the data provider is not an array of the pixels' colors anymore.
To get the pixels as an array of colors, the image should be drawn to a memory context instead. Then the backing memory buffer can be accessed to get the image pixels' colors.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190814/4b656443/attachment.html>
More information about the webkit-unassigned
mailing list