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

Commit 900174ef authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix null deref & update compress" into udc-dev

parents 25148f07 9eb7779a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -96,8 +96,8 @@ public final class Gainmap implements Parcelable {
            throw new RuntimeException("internal error: native gainmap is 0");
        }

        mGainmapContents = gainmapContents;
        mNativePtr = nativeGainmap;
        setGainmapContents(gainmapContents);

        NoImagePreloadHolder.sRegistry.registerNativeAllocation(this, nativeGainmap);
    }
+1 −1
Original line number Diff line number Diff line
@@ -464,7 +464,7 @@ bool Bitmap::compress(JavaCompressFormat format, int32_t quality, SkWStream* str
        SkBitmap baseBitmap = getSkBitmap();
        SkBitmap gainmapBitmap = gainmap()->bitmap->getSkBitmap();
        SkJpegEncoder::Options options{.fQuality = quality};
        return SkJpegGainmapEncoder::EncodeJpegR(stream, baseBitmap.pixmap(), options,
        return SkJpegGainmapEncoder::EncodeHDRGM(stream, baseBitmap.pixmap(), options,
                                                 gainmapBitmap.pixmap(), options, gainmap()->info);
    }
#endif
+1.75 MiB
Loading image diff...
+2.63 MiB
Loading image diff...
+2.74 MiB
Loading image diff...