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

Commit f161dce7 authored by sergeyv's avatar sergeyv
Browse files

Add docs about Config.HARDWARE in Bitmap.writeToParcel method

Test: android.graphics.cts.BitmapTest#testWriteHwBitmapToParcel
bug:30999911
Change-Id: I5282df7d881d76f3e78979a2e5d3777f78673a5d
parent ab99c11c
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1591,6 +1591,10 @@ public final class Bitmap implements Parcelable {
    /**
     * Write the bitmap and its pixels to the parcel. The bitmap can be
     * rebuilt from the parcel by calling CREATOR.createFromParcel().
     *
     * If this bitmap is {@link Config#HARDWARE}, it may be unparceled with a different pixel
     * format (e.g. 565, 8888), but the content will be preserved to the best quality permitted
     * by the final pixel format
     * @param p    Parcel object to write the bitmap data into
     */
    public void writeToParcel(Parcel p, int flags) {