Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(675)

Unified Diff: third_party/WebKit/Source/core/fetch/ImageResource.cpp

Issue 2411243004: [WeakMemoryCache] Remove LRU lists, prune order control and live/dead distinction (Closed)
Patch Set: Rebase, rename MemoryCache::setCapacities() Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/fetch/ImageResource.cpp
diff --git a/third_party/WebKit/Source/core/fetch/ImageResource.cpp b/third_party/WebKit/Source/core/fetch/ImageResource.cpp
index d40de1853d3bb77b87856a32f39238b0823f8897..270325b6c132b3a34b2934c1ee8c7ebb8fdf45dd 100644
--- a/third_party/WebKit/Source/core/fetch/ImageResource.cpp
+++ b/third_party/WebKit/Source/core/fetch/ImageResource.cpp
@@ -481,15 +481,7 @@ void ImageResource::decodedSizeChangedTo(const blink::Image* image,
setDecodedSize(newSize);
}
-void ImageResource::didDraw(const blink::Image* image) {
- if (!image || image != m_image)
- return;
- // decodedSize() == 0 indicates that the image is decoded into
- // DiscardableMemory, not in MemoryCache. So we don't need to call
- // Resource::didAccessDecodedData() to update MemoryCache.
- if (decodedSize() != 0)
- Resource::didAccessDecodedData();
-}
+void ImageResource::didDraw(const blink::Image* image) {}
bool ImageResource::shouldPauseAnimation(const blink::Image* image) {
if (!image || image != m_image)

Powered by Google App Engine
This is Rietveld 408576698