summaryrefslogtreecommitdiff
path: root/libs/input/PointerController.cpp
diff options
context:
space:
mode:
author Chet Haase <chet@google.com> 2022-08-15 23:01:03 +0000
committer Chet Haase <chet@google.com> 2022-08-26 16:32:11 +0000
commit0834e9f2980c13a8a54334fdb2ec691d2207f952 (patch)
tree927ec571c9f57c3dc546cb90c4c413776e3b7270 /libs/input/PointerController.cpp
parent36a571bf15b5c151285429e5a74c29ff44106626 (diff)
Add APIs to make Android Path queryable and more useful
The underlying Skia implementation of Path has APIs for querying the data in a path (via SkPath::Iter). It also exposes the ability to add conic sections (conicTo()), which is useful since a Path can contain conics (even if it was not created with conics directly). And it adds a method to get the generationId from a Path, used to see whether a Path changed since the last time that Id was retrieved. Finally, it exposes a simple interpolate() function to allow linear interpolation between two paths. This CL adds PathIterator to enable querying Path data, and adds conicTo, isInterpolatable(), and interpolate() to Path, all of which wrap the underlying, existing Skia functionality. Bug: 157391114 Bug: 223586753 Test: Added PathIteratorTest plus new tests on PathTest Change-Id: Iddadfde24dd75ac04d0a2f3ebca767613af25360
Diffstat (limited to 'libs/input/PointerController.cpp')
0 files changed, 0 insertions, 0 deletions