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. |