Merge "Apply bilinear filter for Ninepatch." am: 59e8bb9e98 am: 8e3cdfb050
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1550596 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Ic935b67812261d72717e61e958c011f307e93638
This commit is contained in:
@@ -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());
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user