OSDN Git Service

Cache VectorDrawable bounds at record time
authorStan Iliev <stani@google.com>
Wed, 7 Feb 2018 19:07:30 +0000 (14:07 -0500)
committerStan Iliev <stani@google.com>
Thu, 8 Feb 2018 19:01:08 +0000 (19:01 +0000)
commit65e678fdb1375fe183e628ff158f66b2f04331d0
treeeb90b484d1781974f7e5200e0d4eba87ce367b19
parentbc48bd8f6137955b99f51562ab4959783f827e22
Cache VectorDrawable bounds at record time

Cache VectorDrawable bounds at record time, because the same
drawable object may be used several times with different bounds.

Bug: 71737362
Test: Wrote a new unit test, tried sample app attached to the bug
Change-Id: If7be934acf0c16b328cb0f95d849e463dcd3b88b
libs/hwui/VectorDrawable.cpp
libs/hwui/VectorDrawable.h
libs/hwui/pipeline/skia/SkiaRecordingCanvas.cpp
libs/hwui/tests/unit/RenderNodeDrawableTests.cpp