summaryrefslogtreecommitdiff
path: root/libs/hwui/VectorDrawable.h
diff options
context:
space:
mode:
authorStan Iliev <stani@google.com>2018-02-07 14:07:30 -0500
committerStan Iliev <stani@google.com>2018-02-08 19:01:08 +0000
commit65e678fdb1375fe183e628ff158f66b2f04331d0 (patch)
treeeb90b484d1781974f7e5200e0d4eba87ce367b19 /libs/hwui/VectorDrawable.h
parentbc48bd8f6137955b99f51562ab4959783f827e22 (diff)
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
Diffstat (limited to 'libs/hwui/VectorDrawable.h')
-rw-r--r--libs/hwui/VectorDrawable.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/VectorDrawable.h b/libs/hwui/VectorDrawable.h
index d9cf8ab7eedf..da52a9503377 100644
--- a/libs/hwui/VectorDrawable.h
+++ b/libs/hwui/VectorDrawable.h
@@ -644,7 +644,7 @@ public:
* Draws VD cache into a canvas. This should always be called from RT and it works with Skia
* pipelines only.
*/
- void draw(SkCanvas* canvas);
+ void draw(SkCanvas* canvas, const SkRect& bounds);
/**
* Draws VD into a GPU backed surface.