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

Unified Diff: include/core/SkImageDecoder.h

Issue 101973005: SkDecodingImageGenerator now uses SkStreamRewindable (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: rebased again 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
« no previous file with comments | « no previous file | src/images/SkDecodingImageGenerator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkImageDecoder.h
diff --git a/include/core/SkImageDecoder.h b/include/core/SkImageDecoder.h
index 43950adb67ec690a86d5e166e0904cefb8c1d973..7241458955f3771fffbb8bf9b73a158b92442a7f 100644
--- a/include/core/SkImageDecoder.h
+++ b/include/core/SkImageDecoder.h
@@ -349,33 +349,6 @@ public:
size_t fRowBytes;
};
- /**
- * Decode memory.
- * @param info Output parameter. Returns info about the encoded image.
- * @param target Contains the address of pixel memory to decode into
- * (which must be large enough to hold the width in info) and
- * the row bytes to use. If NULL, returns info and does not
- * decode pixels.
- * @return bool Whether the function succeeded.
- *
- * Sample usage:
- * <code>
- * // Determine the image's info: width/height/config
- * SkImageInfo info;
- * bool success = DecodeMemoryToTarget(src, size, &info, NULL);
- * if (!success) return;
- * // Allocate space for the result:
- * SkBitmapFactory::Target target;
- * target.fAddr = malloc/other allocation
- * target.fRowBytes = ...
- * // Now decode the actual pixels into target. &info is optional,
- * // and could be NULL
- * success = DecodeMemoryToTarget(src, size, &info, &target);
- * </code>
- */
- static bool DecodeMemoryToTarget(const void* buffer, size_t size, SkImageInfo* info,
- const Target* target);
-
/** Decode the image stored in the specified SkStreamRewindable, and store the result
in bitmap. Return true for success or false on failure.
« no previous file with comments | « no previous file | src/images/SkDecodingImageGenerator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698