Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 906f2ad1 authored by Diego Perez's avatar Diego Perez
Browse files

Remove use of refSkPixelRef

Test: refactoring, existing tests pass
Change-Id: I4ea51f25b3a2e4cb6a3391d059fb1f0b74f0e90d
parent daf72290
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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());
    }

    /**