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

Unified Diff: third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.h

Issue 2202473002: DO NOT COMMIT: Experimental removal of encoded image data Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: (rebase) 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/graphics/DeferredImageDecoder.h
diff --git a/third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.h b/third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.h
index 993f139e0e2e91c535d41f1b541e25f8f28b1cf5..0802a38e8b6396f118bc9a8e635280148aee7b53 100644
--- a/third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.h
+++ b/third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.h
@@ -59,6 +59,8 @@ public:
sk_sp<SkImage> createFrameAtIndex(size_t);
+ bool clear();
+ bool isBufferCleared() const { return m_isBufferCleared; }
PassRefPtr<SharedBuffer> data();
void setData(PassRefPtr<SharedBuffer> data, bool allDataReceived);
@@ -106,6 +108,7 @@ private:
// Caches frame state information.
Vector<DeferredFrameData> m_frameData;
RefPtr<ImageFrameGenerator> m_frameGenerator;
+ bool m_isBufferCleared;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698