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

Commit da20330b authored by Mike Reed's avatar Mike Reed Committed by Leon Scroggins
Browse files

Fix nine-patches to always filter

Regression was introduced here:
https://android.git.corp.google.com/platform/frameworks/base/+/c2dbc03acc61e3d4303afbbc63c8e7144f617846

Bug: 176691890
Test: I1336d7e70f0e46e57023d7e0b8331ba7cba137ac

Change-Id: I8153f1d6ecd850953369dd664da88915c3842bb5
(cherry picked from commit 0e540d05)
Merged-In: I8153f1d6ecd850953369dd664da88915c3842bb5
Merged-In: I16f5aaff99ad6d2b6813a75ddbb4c97beb7aa2d8
parent 27ea4217
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(*filteredPaint), [&](SkScalar x, SkScalar y,
                                                                      const SkPaint& p) {
        mRecorder.drawImageLattice(image, lattice, dst.makeOffset(x, y), &p, bitmap.palette());
    });