[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 11:50:50 PST 2013
https://bugs.webkit.org/show_bug.cgi?id=106842
--- Comment #47 from Hin-Chung Lam <hclam at google.com> 2013-01-25 11:52:45 PST ---
(From update of attachment 184554)
View in context: https://bugs.webkit.org/attachment.cgi?id=184554&action=review
>> Source/WebCore/platform/graphics/chromium/ImageDecodingStore.cpp:113
>> + if (!pixelRef->pixels()) {
>
> 1. Can we move this check before line 103 such that we only increment use count if pixelRef->pixels() return true?
>
> 2. Please also run removeCacheEntryInternal(cacheEntry) outside of the lock. You can have another success variable and return outside of the block.
Sorry what I mean for 2 is to delete the CacheEntry outside the lock. I would merge removeCacheEntryInternal here and put the Vector<...> above the mutex.
--
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