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

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

Merge "Respect the EXIF orientation in ImageDecoder"

parents 60cf5442 ac1928b7
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -74,7 +74,8 @@ static jobject native_create(JNIEnv* env, std::unique_ptr<SkStream> stream) {

    // FIXME: Avoid parsing the whole image?
    const bool animated = codec->getFrameCount() > 1;
    decoder->mCodec = SkAndroidCodec::MakeFromCodec(std::move(codec));
    decoder->mCodec = SkAndroidCodec::MakeFromCodec(std::move(codec),
            SkAndroidCodec::ExifOrientationBehavior::kRespect);
    if (!decoder->mCodec.get()) {
        doThrowIOE(env, "Could not create AndroidCodec");
        return nullptr;