diff options
| author | John Reck <jreck@google.com> | 2015-07-31 13:10:39 -0700 |
|---|---|---|
| committer | John Reck <jreck@google.com> | 2015-08-03 20:57:22 +0000 |
| commit | 01a0af31d7d418f400ce5d3f752eba6a35aa00e2 (patch) | |
| tree | 02b4cd30808726c61463464dd9c62959df5cb3f2 /core/jni | |
| parent | 3ba2bfa7b280bac76d4d60a7f548c5e06aaca569 (diff) | |
| download | frameworks_base-01a0af31d7d418f400ce5d3f752eba6a35aa00e2.zip frameworks_base-01a0af31d7d418f400ce5d3f752eba6a35aa00e2.tar.gz frameworks_base-01a0af31d7d418f400ce5d3f752eba6a35aa00e2.tar.bz2 | |
Yell loudly about undefined behind in Bitmap, but work anyway
Bug: 22214367
Previous releases would let the getters on a recycle()'d bitmap to still
work despite being firmly in undefined behavior per the documentation
on Bitmap#recycle().
As there are apps relying on this, yell very loudly about this behavior
in the log and give them a bit of time to fix it
Change-Id: I857be7e74cb217877973d9c6f03eb761d12fd056
Diffstat (limited to 'core/jni')
| -rwxr-xr-x | core/jni/android/graphics/Bitmap.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/core/jni/android/graphics/Bitmap.cpp b/core/jni/android/graphics/Bitmap.cpp index 670d3c0..fbe3ece 100755 --- a/core/jni/android/graphics/Bitmap.cpp +++ b/core/jni/android/graphics/Bitmap.cpp @@ -218,7 +218,6 @@ int Bitmap::getAshmemFd() const { } const SkImageInfo& Bitmap::info() const { - assertValid(); return mPixelRef->info(); } |
