OSDN Git Service

Use filtering when drawing nine-patches
authorLeon Scroggins III <scroggo@google.com>
Mon, 23 Apr 2018 15:15:00 +0000 (11:15 -0400)
committerLeon Scroggins <scroggo@google.com>
Tue, 8 May 2018 17:23:11 +0000 (17:23 +0000)
commit5a663768c463d70fa8ff0bc3080e178c16241a07
tree26ea7516fdc5f19b355b08cbff5be794dc73a291
parent4a7913c268c3d65c060f7f8f8df5c2ff0218245e
Use filtering when drawing nine-patches

Bug: 77917978
Test: Look at toggles; CtsUiRenderingTestCases

Prior to this change, the toggles look pixelated due to using a
"nearest" filter instead of a "bilerp".

This matches the behavior of the hwui renderer.

Depends on changes in Skia (Ib7d0abdd51981bddf36ec5c3fd84bb651f405f0f)
to respect the filter quality when drawing to a GPU canvas and to
remove the resulting "bleeding" effect from drawImageLattice.

Change-Id: I59d81a17f351e18574539479a38a580a02e1619b
libs/hwui/pipeline/skia/SkiaRecordingCanvas.cpp