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

Unified Diff: third_party/WebKit/Source/core/style/StyleFetchedImage.h

Issue 2499263002: Add UMA to estimate deroppable memory usage of encoded data size in Resources (Closed)
Patch Set: Address on reviews 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/style/StyleFetchedImage.h
diff --git a/third_party/WebKit/Source/core/style/StyleFetchedImage.h b/third_party/WebKit/Source/core/style/StyleFetchedImage.h
index 70d9cd9e2616f5793ab01eaf173e507f2b6fcada..b261caf307035dc97bf15cabc9574adadd711e2d 100644
--- a/third_party/WebKit/Source/core/style/StyleFetchedImage.h
+++ b/third_party/WebKit/Source/core/style/StyleFetchedImage.h
@@ -68,6 +68,12 @@ class StyleFetchedImage final : public StyleImage, private ResourceClient {
bool knownToBeOpaque(const LayoutObject&) const override;
ImageResource* cachedImage() const override;
+ bool isRefetchableFromDiskCache() const override {
+ // ResourceFetcher is not determined from StyleFetchedImage and it is
+ // impossible to send a request for refetching.
+ return false;
+ }
+
DECLARE_VIRTUAL_TRACE();
private:

Powered by Google App Engine
This is Rietveld 408576698