OSDN Git Service

Fix path interpretation on curves
authorztenghui <ztenghui@google.com>
Wed, 9 Apr 2014 21:44:38 +0000 (14:44 -0700)
committerztenghui <ztenghui@google.com>
Wed, 9 Apr 2014 22:11:40 +0000 (15:11 -0700)
commit33ed52eff4b41f88858874e1af7723277a041b56
treefea943bd86970b89811f8bdb919d003af01839cd
parent972d0488a555ff65a9e18655795e65e4b5365175
Fix path interpretation on curves

Mostly about the shorthand for quadratic / cubic curve.

We now comply with the spec, which said the behavior should depend on the
previous command.
At the same time, make sure our current point and current control point info
are always in absolute coordinates, not a mix of absolute and relative.
CTS test will be added to monitor this behavior.

Note: Chrome / Firefox are following this rule, while Linux OS / Batik are not.

bug:13913405

Change-Id: I9f8168ed97f87c754c79588984f1f199507b0377
graphics/java/android/graphics/drawable/VectorDrawable.java