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

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 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 e4c93592c8e0ac2361f84aab18df2f68f2c03fd8..47e20672fe408ba7bb60be8c90f33a164def65c4 100644
--- a/third_party/WebKit/Source/core/fetch/ImageResource.cpp
+++ b/third_party/WebKit/Source/core/fetch/ImageResource.cpp
@@ -481,13 +481,6 @@ void ImageResource::decodedSizeChangedTo(const blink::Image* image,
}
void ImageResource::didDraw(const blink::Image* image) {
Nate Chapin 2016/10/21 18:48:20 Looks like this callback is ignored by all ImageOb
hiroshige 2016/10/24 10:35:28 Created a separate patch: https://codereview.chrom
- 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();
}
bool ImageResource::shouldPauseAnimation(const blink::Image* image) {

Powered by Google App Engine
This is Rietveld 408576698