diff options
author | Leon Scroggins III <scroggo@google.com> | 2013-09-25 15:33:54 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2013-09-25 15:33:54 -0700 |
commit | afbd777fdaf4ecc6c483c45fc8f8206a119574cc (patch) | |
tree | b348edfe19b4748d783bf30909e86ae48f120a98 /graphics/java/android | |
parent | e4b0a9a940a122a37dafd79fc3c251c450b0519d (diff) | |
parent | ae1e88553fa628dbf22aa5ed2659f5ea2c12793a (diff) | |
download | frameworks_base-afbd777fdaf4ecc6c483c45fc8f8206a119574cc.zip frameworks_base-afbd777fdaf4ecc6c483c45fc8f8206a119574cc.tar.gz frameworks_base-afbd777fdaf4ecc6c483c45fc8f8206a119574cc.tar.bz2 |
am ae1e8855: am 8e4b16d6: Merge "Update docs to state that mark is no longer called." into klp-dev
* commit 'ae1e88553fa628dbf22aa5ed2659f5ea2c12793a':
Update docs to state that mark is no longer called.
Diffstat (limited to 'graphics/java/android')
-rw-r--r-- | graphics/java/android/graphics/BitmapFactory.java | 5 | ||||
-rw-r--r-- | graphics/java/android/graphics/BitmapRegionDecoder.java | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/graphics/java/android/graphics/BitmapFactory.java b/graphics/java/android/graphics/BitmapFactory.java index dd7d704..0f61bcb 100644 --- a/graphics/java/android/graphics/BitmapFactory.java +++ b/graphics/java/android/graphics/BitmapFactory.java @@ -558,6 +558,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) + * + * <p class="note">Prior to {@link android.os.Build.VERSION_CODES#KITKAT}, + * if {@link InputStream#markSupported is.markSupported()} returns true, + * <code>is.mark(1024)</code> would be called. As of + * {@link android.os.Build.VERSION_CODES#KITKAT}, this is no longer the case.</p> */ 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 3524b25..3a99977 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. + * + * <p class="note">Prior to {@link android.os.Build.VERSION_CODES#KITKAT}, + * if {@link InputStream#markSupported is.markSupported()} returns true, + * <code>is.mark(1024)</code> would be called. As of + * {@link android.os.Build.VERSION_CODES#KITKAT}, this is no longer the case.</p> */ public static BitmapRegionDecoder newInstance(InputStream is, boolean isShareable) throws IOException { |