RESOLVED FIXED 96684
[BlackBerry] Support copying image data in WebOverlay
https://bugs.webkit.org/show_bug.cgi?id=96684
Summary [BlackBerry] Support copying image data in WebOverlay
Jakob Petsovits
Reported 2012-09-13 12:43:58 PDT
The publicly exposed WebOverlay class provides a method setContentsToImage() to assign a pointer to pixel data, which is later used to provide texture data for the underlying compositing layer. This works well for static images that stay in memory and never change, but not so well for images with changing contents or where the image data is being reassigned from different image sources that are not constantly kept around in memory. Due to the delayed upload and delayed fetching of EGLImage data by the GPU, we shouldn't assume the caller to know how long the image should be retained. Instead, we should offer another method of setting image data that takes ownership of the pixel data. This patch adds an option to setContentsToImage() that copies the passed pixel data and doesn't destroy it until both the texture is destroyed and the image contents are changed. Using this method, the caller can withdraw the passed pixel array right after the setContentsToImage() call without consequences.
Attachments
Patch (11.81 KB, patch)
2012-09-13 12:49 PDT, Jakob Petsovits
no flags
Patch (11.86 KB, patch)
2012-09-13 14:22 PDT, Jakob Petsovits
no flags
Patch (11.16 KB, patch)
2012-09-14 11:10 PDT, Jakob Petsovits
no flags
Jakob Petsovits
Comment 1 2012-09-13 12:49:56 PDT
Jakob Petsovits
Comment 2 2012-09-13 14:22:45 PDT
Created attachment 163965 [details] Patch Not sure why the first attempt above didn't apply. Git had no rebase issues (except for ChangeLog, which is irrelevant here) but the bot uses regular patch, so let's try again with the rebased version.
Jakob Petsovits
Comment 3 2012-09-14 11:10:02 PDT
Created attachment 164194 [details] Patch There, that should do it. Shoot for the sky, bots!
Rob Buis
Comment 4 2012-09-17 07:41:13 PDT
Comment on attachment 164194 [details] Patch Looks good.
WebKit Review Bot
Comment 5 2012-09-17 07:57:13 PDT
Comment on attachment 164194 [details] Patch Clearing flags on attachment: 164194 Committed r128755: <http://trac.webkit.org/changeset/128755>
WebKit Review Bot
Comment 6 2012-09-17 07:57:17 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.