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

Commit 8a503649 authored by Matt Sarett's avatar Matt Sarett
Browse files

Manual revert of "Decode to sRGB in BitmapFactory"

Test: Verified that this fixes rendering artifacts.

BUG:33741991

Change-Id: Ie56ecee668be6fc20acdfcfd1167232d7c46f1ff
parent d0abcbeb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -395,7 +395,7 @@ static jobject doDecode(JNIEnv* env, SkStreamRewindable* stream, jobject padding
    SkAlphaType alphaType = codec->computeOutputAlphaType(requireUnpremultiplied);

    const SkImageInfo decodeInfo = SkImageInfo::Make(size.width(), size.height(),
            decodeColorType, alphaType, codec->computeOutputColorSpace(decodeColorType));
            decodeColorType, alphaType);

    // We always decode to sRGB, but only mark the bitmap with a color space if linear
    // blending is enabled.