OSDN Git Service

Fix nine patch scaling
authorStan Iliev <stani@google.com>
Mon, 27 Nov 2017 20:59:05 +0000 (15:59 -0500)
committerStan Iliev <stani@google.com>
Mon, 27 Nov 2017 22:29:32 +0000 (17:29 -0500)
commit3715677d7289db3ff64f7435f17d786754d26d4e
tree7e07c3bd2387f2523cde03f202dc5257c082c8b7
parent9cc5b4f0076c844e3058f2144f6944b6e17ba6be
Fix nine patch scaling

Fix nine patch scaling for assets that don't match the DPI.
Sometimes nine patches were scaled up with divs bigger than
width/height. This is fixing incorrect SearchView control draw
for 213dpi material theme in ThemeHostTest.

Test: Ran CtsGraphicsTestCases, CtsUiRenderingTestCases tests
Change-Id: Ifb8037e8ece97b802e723f911d9b74ccd8fe5400
core/jni/android/graphics/BitmapFactory.cpp