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

Commit c101eb6a authored by Leon Scroggins's avatar Leon Scroggins Committed by Android (Google) Code Review
Browse files

Merge "Remove Bitmap#wrapHardwareBuffer(GraphicBuffer)"

parents f7a99fb5 bef9efe8
Loading
Loading
Loading
Loading
+0 −12
Original line number Diff line number Diff line
@@ -776,18 +776,6 @@ public final class Bitmap implements Parcelable {
        return bitmap;
    }

    /**
     * Utility method to create a hardware backed bitmap using the graphics buffer.
     * @hide
     */
    @Nullable
    public static Bitmap wrapHardwareBuffer(@NonNull GraphicBuffer graphicBuffer,
            @Nullable ColorSpace colorSpace) {
        try (HardwareBuffer hb = HardwareBuffer.createFromGraphicBuffer(graphicBuffer)) {
            return wrapHardwareBuffer(hb, colorSpace);
        }
    }

    /**
     * Creates a new bitmap, scaled from an existing bitmap, when possible. If the
     * specified width and height are the same as the current width and height of