Merge "Apply bilinear filter for Ninepatch."

This commit is contained in:
Leon Scroggins
2021-01-29 21:18:05 +00:00
committed by Gerrit Code Review

View File

@@ -301,7 +301,8 @@ void SkiaRecordingCanvas::drawNinePatch(Bitmap& bitmap, const Res_png_9patch& ch
} }
sk_sp<SkImage> image = bitmap.makeImage(); 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()); mRecorder.drawImageLattice(image, lattice, dst.makeOffset(x, y), &p, bitmap.palette());
}); });