Merge "Remove use of refSkPixelRef"

This commit is contained in:
Diego Perez
2016-10-27 10:15:39 +00:00
committed by Android (Google) Code Review

View File

@@ -92,8 +92,7 @@ public final class Bitmap_Delegate {
@Nullable
public static Bitmap_Delegate getDelegate(@Nullable Bitmap bitmap) {
// refSkPixelRef is a hack to get the native pointer: see #nativeRefPixelRef()
return bitmap == null ? null : getDelegate(bitmap.refSkPixelRef());
return bitmap == null ? null : getDelegate(bitmap.getNativeInstance());
}
/**