Skip to content

Commit

Permalink
Return non-zero pointer from nCreateTextureLayer
Browse files Browse the repository at this point in the history
Allows `TextureView` draw method to run without crashing.

PiperOrigin-RevId: 435971197
  • Loading branch information
Googler authored and copybara-robolectric committed Mar 22, 2022
1 parent 33b38ed commit 7d26d43
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -29,4 +29,9 @@ private static Bitmap createHardwareBitmap(int width, int height) {
shadowBitmap.setMutable(false);
return bitmap;
}

@Implementation
protected static long nCreateTextureLayer(long nativeProxy) {
return ShadowVirtualRefBasePtr.put(nativeProxy);
}
}

0 comments on commit 7d26d43

Please sign in to comment.