From c93beed4e670f05104c4615d47265d125251b499 Mon Sep 17 00:00:00 2001 From: Diego Perez Date: Mon, 31 Oct 2016 17:52:12 +0000 Subject: [PATCH] Remove refSkPixelRef Change-Id: I4d6e7076d2b87dd208c0eba27491c13f56567420 --- .../layoutlib/bridge/src/android/graphics/Canvas_Delegate.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/layoutlib/bridge/src/android/graphics/Canvas_Delegate.java b/tools/layoutlib/bridge/src/android/graphics/Canvas_Delegate.java index fa880f0710c4e..4a4c6c81a77f0 100644 --- a/tools/layoutlib/bridge/src/android/graphics/Canvas_Delegate.java +++ b/tools/layoutlib/bridge/src/android/graphics/Canvas_Delegate.java @@ -123,7 +123,7 @@ public final class Canvas_Delegate { /*package*/ static long initRaster(@Nullable Bitmap bitmap) { long nativeBitmapOrZero = 0; if (bitmap != null) { - nativeBitmapOrZero = bitmap.refSkPixelRef(); + nativeBitmapOrZero = bitmap.getNativeInstance(); } if (nativeBitmapOrZero > 0) { // get the Bitmap from the int