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

Commit 7c0e6219 authored by Ying Wang's avatar Ying Wang
Browse files

Fix build.

Change-Id: I2b161a4020862d83347d5a8989467c612fff08db
parent 07f08d50
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -105,7 +105,7 @@ bool OmxJpegImageDecoder::onDecode(SkStream* stream,
    meta->findInt32(kKeyWidth, &width);
    meta->findInt32(kKeyHeight, &height);
    configBitmapSize(
            bm, SkColorTypeToBitmapConfig(getPrefColorType(k32Bit_SrcDepth, false)),
            bm, getPrefColorType(k32Bit_SrcDepth, false),
            width, height);

    // mode == DecodeBounds
@@ -173,6 +173,5 @@ void OmxJpegImageDecoder::configBitmapSize(SkBitmap* bm, SkColorType pref,
        int width, int height) {
    // Set the color space to ARGB_8888 for now (ignoring pref)
    // because of limitation in hardware support.
    bm->setInfo(SkImageInfo::MakeN32(width, height, kOpaque_SkAlphaType);
    bm->setInfo(SkImageInfo::MakeN32(width, height, kOpaque_SkAlphaType));
}