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

Unified Diff: Source/core/platform/graphics/ImageFrameGenerator.h

Issue 105773003: Teach Skia to use discardable memory (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years 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: Source/core/platform/graphics/ImageFrameGenerator.h
diff --git a/Source/core/platform/graphics/ImageFrameGenerator.h b/Source/core/platform/graphics/ImageFrameGenerator.h
index 627229de8a58afeac626baa0b8dc744ecee1dbd6..931fa986f39238312ec3408f335e1556985e46c2 100644
--- a/Source/core/platform/graphics/ImageFrameGenerator.h
+++ b/Source/core/platform/graphics/ImageFrameGenerator.h
@@ -62,6 +62,13 @@ public:
const ScaledImageFragment* decodeAndScale(const SkISize& scaledSize, size_t index = 0);
+ // Decodes and scales the specified frame indicated by |index|. Dimensions
+ // and output format are specified in |info|. Decoded pixels are written
+ // into |pixels| with a stride of |rowBytes|.
+ //
+ // Returns true if decoding was successful.
+ bool decodeAndScale(const SkImageInfo&, size_t index, void* pixels, size_t rowBytes);
+
void setData(PassRefPtr<SharedBuffer>, bool allDataReceived);
// Creates a new SharedBuffer containing the data received so far.

Powered by Google App Engine
This is Rietveld 408576698