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

Commit 6860353f authored by Minkyoung Kim's avatar Minkyoung Kim Committed by John Reck
Browse files

Apply bilinear filter for Ninepatch.

Test: build. Samsung mobile devices.
Change-Id: I16f5aaff99ad6d2b6813a75ddbb4c97beb7aa2d8
Merged-In: I8153f1d6ecd850953369dd664da88915c3842bb5
parent 937f0554
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -301,7 +301,8 @@ void SkiaRecordingCanvas::drawNinePatch(Bitmap& bitmap, const Res_png_9patch& ch
    }
    sk_sp<SkImage> image = bitmap.makeImage();

    applyLooper(get_looper(paint), *filterBitmap(paint), [&](SkScalar x, SkScalar y, const SkPaint& p) {
    applyLooper(get_looper(paint), *filterBitmap(std::move(filteredPaint)),
                [&](SkScalar x, SkScalar y, const SkPaint& p) {
        mRecorder.drawImageLattice(image, lattice, dst.makeOffset(x, y), &p, bitmap.palette());
    });