Merge "Respect the EXIF orientation in ImageDecoder"
This commit is contained in:
committed by
Android (Google) Code Review
commit
013918947d
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user