OSDN Git Service

Attempt to solve the double-GC problem
authorJohn Reck <jreck@google.com>
Tue, 7 Apr 2015 14:32:03 +0000 (07:32 -0700)
committerJohn Reck <jreck@google.com>
Mon, 4 May 2015 23:05:12 +0000 (16:05 -0700)
commitf29ed28c7b878ef28058bc730715d0d32445bc57
tree3687467f789dfd447159e13dd0a840d1a5dae98f
parent05dc201ff64f6324c2726a8841af7021e7071b97
Attempt to solve the double-GC problem

Fix the issue where Bitmap requires two GC passes
to release its byte[] by using some questionable
ref-counting hacks to manage whether or not
native has a strong or weak ref to the byte[]

Change-Id: Ia90a883579f61c0b1904b5549a66bd0ef34b32c5
core/jni/android/graphics/Bitmap.cpp
core/jni/android/graphics/Bitmap.h [new file with mode: 0644]
core/jni/android/graphics/BitmapFactory.cpp
core/jni/android/graphics/BitmapRegionDecoder.cpp
core/jni/android/graphics/Graphics.cpp
core/jni/android/graphics/GraphicsJNI.h
core/jni/android_view_SurfaceControl.cpp
graphics/java/android/graphics/Bitmap.java