summaryrefslogtreecommitdiffstats
path: root/graphics/java/android/graphics/Bitmap.java
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2015-04-15 13:24:47 -0700
committerJohn Reck <jreck@google.com>2015-05-01 14:30:21 -0700
commitc6e2e8ff474ae44bab5b9eb665851118abd27b68 (patch)
tree1c193512201d8fd4ca033f3979849dd1b9b2a861 /graphics/java/android/graphics/Bitmap.java
parent78760b4ae47f5d59a541cbcbf1fca623bae4508a (diff)
downloadframeworks_base-c6e2e8ff474ae44bab5b9eb665851118abd27b68.zip
frameworks_base-c6e2e8ff474ae44bab5b9eb665851118abd27b68.tar.gz
frameworks_base-c6e2e8ff474ae44bab5b9eb665851118abd27b68.tar.bz2
Move AssetAtlas off of SkBitmap*
Switched to SkPixelRef* Change-Id: I4a1d9dc6c55c1ebcce6b0b8c585e69559e523898
Diffstat (limited to 'graphics/java/android/graphics/Bitmap.java')
-rw-r--r--graphics/java/android/graphics/Bitmap.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/graphics/java/android/graphics/Bitmap.java b/graphics/java/android/graphics/Bitmap.java
index e2f7799..76d6edf 100644
--- a/graphics/java/android/graphics/Bitmap.java
+++ b/graphics/java/android/graphics/Bitmap.java
@@ -1573,6 +1573,15 @@ public final class Bitmap implements Parcelable {
return mSkBitmapPtr;
}
+ /**
+ * Refs the underlying SkPixelRef and returns a pointer to it.
+ *
+ * @hide
+ * */
+ public final long refSkPixelRef() {
+ return nativeRefPixelRef(mSkBitmapPtr);
+ }
+
private static class BitmapFinalizer {
private long mNativeBitmap;
@@ -1661,4 +1670,5 @@ public final class Bitmap implements Parcelable {
private static native boolean nativeHasMipMap(long nativeBitmap);
private static native void nativeSetHasMipMap(long nativeBitmap, boolean hasMipMap);
private static native boolean nativeSameAs(long nativeBitmap0, long nativeBitmap1);
+ private static native long nativeRefPixelRef(long nativeBitmap);
}