[Webkit-unassigned] [Bug 249915] Don't update MemoryCache during drawImage if the image is decoded into DiscardableMemory
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Jan 31 08:51:08 PST 2023
https://bugs.webkit.org/show_bug.cgi?id=249915
Alexey Proskuryakov <ap at webkit.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INVALID
--- Comment #4 from Alexey Proskuryakov <ap at webkit.org> ---
While I don't have an answer about "discardable memory", I don't think that this optimization applies to WebKit, because CachedResource::didAccessDecodedData is already quick when the resource is not in cache:
void CachedResource::didAccessDecodedData(MonotonicTime timeStamp)
{
m_lastDecodedAccessTime = timeStamp;
if (allowsCaching() && inCache()) {
auto& memoryCache = MemoryCache::singleton();
if (memoryCache.inLiveDecodedResourcesList(*this)) {
memoryCache.removeFromLiveDecodedResourcesList(*this);
memoryCache.insertInLiveDecodedResourcesList(*this);
}
memoryCache.pruneSoon();
}
}
--
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/20230131/72a09106/attachment-0001.htm>
More information about the webkit-unassigned
mailing list