Skip to content

Commit d7f59db

Browse files
sleepiggyGenkzsz11
authored andcommitted
Apply bilinear filter for Ninepatch.
Test: build. Samsung mobile devices. Change-Id: I16f5aaff99ad6d2b6813a75ddbb4c97beb7aa2d8 Merged-In: I8153f1d6ecd850953369dd664da88915c3842bb5 Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
1 parent c3c7b88 commit d7f59db

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

libs/hwui/pipeline/skia/SkiaRecordingCanvas.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,8 @@ void SkiaRecordingCanvas::drawNinePatch(Bitmap& bitmap, const Res_png_9patch& ch
301301
}
302302
sk_sp<SkImage> image = bitmap.makeImage();
303303

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

0 commit comments

Comments
 (0)