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

Unified Diff: third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoder.h

Issue 2365943005: Cap memory usage in webp catch up (Closed)
Patch Set: Created 4 years, 3 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/platform/image-decoders/webp/WEBPImageDecoder.h
diff --git a/third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoder.h b/third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoder.h
index fabe470baa8497527e4128939863885c121606d1..1e91c23c509f816f97867cce8df4901964ef5424 100644
--- a/third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoder.h
+++ b/third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoder.h
@@ -83,6 +83,10 @@ private:
void clear();
void clearDecoder();
+ void updateAggressivePurging(size_t index);
+
+ bool m_purgeAggressively;
+
// FIXME: Update libwebp's API so it does not require copying the data on each update.
sk_sp<SkData> m_consolidatedData;
};

Powered by Google App Engine
This is Rietveld 408576698