summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorAmeer Armaly <aarmaly@google.com>2020-01-28 18:17:03 -0800
committerAmeer Armaly <aarmaly@google.com>2020-02-02 03:56:29 +0000
commitb66d22637712cb7bb0503d2edfd20c3c40ded02d (patch)
tree02007bbc90792d3f9a2adf195a9a1474d2a81247 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent8fa1dd2aad5b516f4987a7cc3dbadfd68347ce09 (diff)
One-finger swipe: remove unnecessary allocations.
Part of the old swipe code, which was copied over to the new swipe detector, used GesturePoint objects because it needed to track the time of each entry in the gesture path. This is no longer necessary because we use handlers to cancel the gesture on a delay. This change makes the whole class use PointF which avoids allocating a new PointF for some subset of the GesturePoints during the gesture recognition process. Bug: 136131815 Test: atest GestureManifoldTest AccessibilityGestureDetectorTest TouchExplorerTest Change-Id: I1c89122d7f27b52a25e777667e34fec246d5c21f
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions