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

Commit 04b4f89d authored by Jerome Gaillard's avatar Jerome Gaillard
Browse files

Update Bitmap_Delegate following Change I0092fe44

Test: Layoutlib tests
Change-Id: I3b1cfb460a6b7ccd6b63bd53194383154a68591c
parent eb346fc1
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -248,7 +248,8 @@ public final class Bitmap_Delegate {

    @LayoutlibDelegate
    /*package*/ static Bitmap nativeCreate(int[] colors, int offset, int stride, int width,
            int height, int nativeConfig, boolean isMutable) {
            int height, int nativeConfig, boolean isMutable, @Nullable float[] xyzD50,
            @Nullable ColorSpace.Rgb.TransferParameters p) {
        int imageType = getBufferedImageType();

        // create the image
@@ -664,6 +665,12 @@ public final class Bitmap_Delegate {
        return false;
    }

    @LayoutlibDelegate
    /*package*/ static void nativeCopyColorSpace(long srcBitmap, long dstBitmap) {
        Bridge.getLog().error(LayoutLog.TAG_UNSUPPORTED,
                "Color spaces are not supported", null /*data*/);
    }

    // ---- Private delegate/helper methods ----

    private Bitmap_Delegate(BufferedImage image, Config config) {