[Webkit-unassigned] [Bug 106842] adding support for DiscardablePixelRef for caching lazily decoded images

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jan 25 17:34:28 PST 2013


https://bugs.webkit.org/show_bug.cgi?id=106842





--- Comment #74 from Min Qin <qinmin at chromium.org>  2013-01-25 17:36:22 PST ---
Hi, James, I update the code and comments, please take another look.

For dst->lockPixels(), we have to call it so skbitmap can have correct pixels. 

Since the memory have to be locked when the first onLockPixels() are called, we have to ignore the first onLockPixels(). We cannot leave memory unlocked for the first onLockPixels, coz otherwise we will have a situation that the memory got purged before onLockPixels(). Then we have to create ashmem again, and the same thing happens again...

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list