From 321bc46b3c885a806f2e7e29db8212f7ea6c8670 Mon Sep 17 00:00:00 2001 From: Leon Scroggins III Date: Wed, 25 Sep 2013 17:49:45 -0400 Subject: [PATCH] Update docs to state that mark is no longer called. BUG:6493544 Change-Id: I97a4d90ce2efcd12f8f1cc5b545f822f8e5a5ab0 --- graphics/java/android/graphics/BitmapFactory.java | 5 +++++ graphics/java/android/graphics/BitmapRegionDecoder.java | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/graphics/java/android/graphics/BitmapFactory.java b/graphics/java/android/graphics/BitmapFactory.java index c8ace44c2c516..a7c5b20e027b7 100644 --- a/graphics/java/android/graphics/BitmapFactory.java +++ b/graphics/java/android/graphics/BitmapFactory.java @@ -553,6 +553,11 @@ public class BitmapFactory { * @return The decoded bitmap, or null if the image data could not be * decoded, or, if opts is non-null, if opts requested only the * size be returned (in opts.outWidth and opts.outHeight) + * + *

Prior to {@link android.os.Build.VERSION_CODES#KITKAT}, + * if {@link InputStream#markSupported is.markSupported()} returns true, + * is.mark(1024) would be called. As of + * {@link android.os.Build.VERSION_CODES#KITKAT}, this is no longer the case.

*/ public static Bitmap decodeStream(InputStream is, Rect outPadding, Options opts) { // we don't throw in this case, thus allowing the caller to only check diff --git a/graphics/java/android/graphics/BitmapRegionDecoder.java b/graphics/java/android/graphics/BitmapRegionDecoder.java index 3524b25533f18..3a99977df758d 100644 --- a/graphics/java/android/graphics/BitmapRegionDecoder.java +++ b/graphics/java/android/graphics/BitmapRegionDecoder.java @@ -104,6 +104,11 @@ public final class BitmapRegionDecoder { * allowing sharing may degrade the decoding speed. * @return BitmapRegionDecoder, or null if the image data could not be decoded. * @throws IOException if the image format is not supported or can not be decoded. + * + *

Prior to {@link android.os.Build.VERSION_CODES#KITKAT}, + * if {@link InputStream#markSupported is.markSupported()} returns true, + * is.mark(1024) would be called. As of + * {@link android.os.Build.VERSION_CODES#KITKAT}, this is no longer the case.

*/ public static BitmapRegionDecoder newInstance(InputStream is, boolean isShareable) throws IOException {