diff options
author | Derek Sollenberger <djsollen@google.com> | 2014-12-03 09:55:32 -0500 |
---|---|---|
committer | Derek Sollenberger <djsollen@google.com> | 2014-12-03 13:43:30 -0500 |
commit | f29d5a5b211786248d0557157c304c5fff428bd4 (patch) | |
tree | 52c16a39bd32e4718819b1f8c0402ab7188a62d0 /graphics | |
parent | 195c438883dfcca799aa456dfe52d24c077e40da (diff) | |
download | frameworks_base-f29d5a5b211786248d0557157c304c5fff428bd4.zip frameworks_base-f29d5a5b211786248d0557157c304c5fff428bd4.tar.gz frameworks_base-f29d5a5b211786248d0557157c304c5fff428bd4.tar.bz2 |
Update AndroidPixelRef to prevent VM from cleaning up memory prematurely.
bug:18306529
Change-Id: I1ea94df1dcaf4fcf248b63dc8b0a13f36412570a
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/java/android/graphics/Bitmap.java | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/graphics/java/android/graphics/Bitmap.java b/graphics/java/android/graphics/Bitmap.java index 3090ffd..3f79c2d 100644 --- a/graphics/java/android/graphics/Bitmap.java +++ b/graphics/java/android/graphics/Bitmap.java @@ -48,13 +48,8 @@ public final class Bitmap implements Parcelable { /** * Backing buffer for the Bitmap. - * Made public for quick access from drawing methods -- do NOT modify - * from outside this class - * - * @hide */ - @SuppressWarnings("UnusedDeclaration") // native code only - public byte[] mBuffer; + private byte[] mBuffer; @SuppressWarnings({"FieldCanBeLocal", "UnusedDeclaration"}) // Keep to finalize native resources private final BitmapFinalizer mFinalizer; |