diff options
author | Romain Guy <romainguy@google.com> | 2012-03-15 18:57:48 -0700 |
---|---|---|
committer | Romain Guy <romainguy@google.com> | 2012-03-15 18:57:48 -0700 |
commit | caf813fe1ec10dda75cd752cb3ff80872ae7ac0b (patch) | |
tree | ee6c485b23bc5f482e0f6cf9f3e3d384ecedcd36 /graphics/java | |
parent | 51e4d4db296c252641161b39e98f49acebc46062 (diff) | |
download | frameworks_base-caf813fe1ec10dda75cd752cb3ff80872ae7ac0b.zip frameworks_base-caf813fe1ec10dda75cd752cb3ff80872ae7ac0b.tar.gz frameworks_base-caf813fe1ec10dda75cd752cb3ff80872ae7ac0b.tar.bz2 |
Remove unused private API
Change-Id: Iec9c2bc275fc7376f4e0b0b9c44059c56a9dd173
Diffstat (limited to 'graphics/java')
-rw-r--r-- | graphics/java/android/graphics/BitmapFactory.java | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/graphics/java/android/graphics/BitmapFactory.java b/graphics/java/android/graphics/BitmapFactory.java index bff2a76..f0d1643 100644 --- a/graphics/java/android/graphics/BitmapFactory.java +++ b/graphics/java/android/graphics/BitmapFactory.java @@ -595,30 +595,6 @@ public class BitmapFactory { return decodeFileDescriptor(fd, null, null); } - /** - * Set the default config used for decoding bitmaps. This config is - * presented to the codec if the caller did not specify a preferred config - * in their call to decode... - * - * The default value is chosen by the system to best match the device's - * screen and memory constraints. - * - * @param config The preferred config for decoding bitmaps. If null, then - * a suitable default is chosen by the system. - * - * @hide - only called by the browser at the moment, but should be stable - * enough to expose if needed - */ - public static void setDefaultConfig(Bitmap.Config config) { - if (config == null) { - // pick this for now, as historically it was our default. - // However, if we have a smarter algorithm, we can change this. - config = Bitmap.Config.RGB_565; - } - nativeSetDefaultConfig(config.nativeInt); - } - - private static native void nativeSetDefaultConfig(int nativeConfig); private static native Bitmap nativeDecodeStream(InputStream is, byte[] storage, Rect padding, Options opts); private static native Bitmap nativeDecodeFileDescriptor(FileDescriptor fd, |