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

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: Fix Created 4 years, 1 month 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 2cebbd0720b1398f1ebdbcffac7c09735bc39f67..a3b6075a9d6af7a0b07aa19e1f4dd53dde125f4a 100644
--- a/third_party/WebKit/Source/core/fetch/ImageResource.cpp
+++ b/third_party/WebKit/Source/core/fetch/ImageResource.cpp
@@ -532,15 +532,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