Deprecate createFromResourceStream with BitmapFactory.Options

Bug: 63909536
Test: none

This version is never used internally with a non-null Options object.
The Options object prevents us from taking advantage of the new
ImageDecoder.

Change-Id: I867f482249a0a6f4b37220b597ef38abf0684360
This commit is contained in:
Leon Scroggins III
2018-01-31 11:10:40 -05:00
parent ce9bcc4977
commit 5de17526b2
2 changed files with 3 additions and 1 deletions

View File

@@ -14602,7 +14602,7 @@ package android.graphics.drawable {
method public final android.graphics.Rect copyBounds();
method public static android.graphics.drawable.Drawable createFromPath(java.lang.String);
method public static android.graphics.drawable.Drawable createFromResourceStream(android.content.res.Resources, android.util.TypedValue, java.io.InputStream, java.lang.String);
method public static android.graphics.drawable.Drawable createFromResourceStream(android.content.res.Resources, android.util.TypedValue, java.io.InputStream, java.lang.String, android.graphics.BitmapFactory.Options);
method public static deprecated android.graphics.drawable.Drawable createFromResourceStream(android.content.res.Resources, android.util.TypedValue, java.io.InputStream, java.lang.String, android.graphics.BitmapFactory.Options);
method public static android.graphics.drawable.Drawable createFromStream(java.io.InputStream, java.lang.String);
method public static android.graphics.drawable.Drawable createFromXml(android.content.res.Resources, org.xmlpull.v1.XmlPullParser) throws java.io.IOException, org.xmlpull.v1.XmlPullParserException;
method public static android.graphics.drawable.Drawable createFromXml(android.content.res.Resources, org.xmlpull.v1.XmlPullParser, android.content.res.Resources.Theme) throws java.io.IOException, org.xmlpull.v1.XmlPullParserException;

View File

@@ -1168,6 +1168,8 @@ public abstract class Drawable {
/**
* Create a drawable from an inputstream, using the given resources and
* value to determine density information.
*
* @deprecated Prefer the version without an Options object.
*/
public static Drawable createFromResourceStream(Resources res, TypedValue value,
InputStream is, String srcName, BitmapFactory.Options opts) {