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

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: Reflect yhirano's comment 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 dba77fe8f5ee36c3f854c9ad3502e47b888015f0..ca593143d015e407c08e40e503d234de624f5f18 100644
--- a/third_party/WebKit/Source/core/fetch/ImageResource.cpp
+++ b/third_party/WebKit/Source/core/fetch/ImageResource.cpp
@@ -573,15 +573,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)
« no previous file with comments | « third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp ('k') | third_party/WebKit/Source/core/fetch/MemoryCache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698