summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramStore.java
diff options
context:
space:
mode:
authorDiego Perez <diegoperez@google.com>2015-12-18 16:01:24 +0000
committerDiego Perez <diegoperez@google.com>2016-01-19 10:14:46 +0000
commitb9c48d8f49d35e2682c7205a9d8d5fcc25d7c736 (patch)
treee4ab1ceefbaed1d6b482092c13f0b9565bcb4e18 /rs/java/android/renderscript/ProgramStore.java
parentf5984d5fce511a669e8d4bb6eaeb9679ff2ba9f0 (diff)
New path interpolation to paint vector drawables
Before this CL, PathMeasure_Delegate would use Path_Delegate.approximate to get a path segment to draw. Path_Delegate.approximate uses a flattening iterator to do the path approximation. Unfortunately, because we do not control the stroke mode while painting, in some cases the approximation would draw unwanted artifacts caused by the rough approximation and the use of wrong miter values. This CL does a much better calculation of the path and interpolates the segments of the curves instead of replacing them with line segments. This also fixes an issue with the calculation of empty paths. Bug: http://b.android.com/187256 Change-Id: I450f7aa4c3d9efcbf902a40c3b4d6d388546893f
Diffstat (limited to 'rs/java/android/renderscript/ProgramStore.java')
0 files changed, 0 insertions, 0 deletions