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

Commit 83e72f40 authored by Romain Guy's avatar Romain Guy Committed by Android Git Automerger
Browse files

am dcb1eab4: Merge "Keep opaque bitmaps opaque after scaling Bug #6293845" into jb-dev

* commit 'dcb1eab4':
  Keep opaque bitmaps opaque after scaling Bug #6293845
parents 532d2c70 dcb1eab4
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -322,6 +322,7 @@ static jobject doDecode(JNIEnv* env, SkStream* stream, jobject padding,
        const float sy = scaledHeight / float(decoded->height());

        bitmap->setConfig(decoded->getConfig(), scaledWidth, scaledHeight);
        bitmap->setIsOpaque(decoded->isOpaque());
        bitmap->allocPixels(&javaAllocator, NULL);
        bitmap->eraseColor(0);