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

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

Issue 2257513002: Refactor ImageDecoder factories (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review Created 4 years, 4 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/ImageSource.h
diff --git a/third_party/WebKit/Source/platform/graphics/ImageSource.h b/third_party/WebKit/Source/platform/graphics/ImageSource.h
index d813c085e9a4557ab19b92b8b649b2a1e57fa4e0..7bcfd9366225444b7325e178855484a381774116 100644
--- a/third_party/WebKit/Source/platform/graphics/ImageSource.h
+++ b/third_party/WebKit/Source/platform/graphics/ImageSource.h
@@ -70,7 +70,8 @@ public:
size_t clearCacheExceptFrame(size_t);
PassRefPtr<SharedBuffer> data();
- ImageDecoder::SniffResult setData(SharedBuffer& data, bool allDataReceived);
+ // Returns false when the decoder layer rejects the data.
+ bool setData(PassRefPtr<SharedBuffer> data, bool allDataReceived);
String filenameExtension() const;
bool isSizeAvailable();

Powered by Google App Engine
This is Rietveld 408576698