• jdduke's avatar
    Remove abstract Clone and Cancel methods from MotionEvent · b5a33976
    jdduke authored
    Create a single implementation of MotionEvent's |Clone()| and
    |Cancel()| methods using MotionEventGeneric. Expand
    MotionEventGeneric to support historical events, also removing
    CompoundMotionEvent from the MotionEventBuffer implementation.
    
    By avoiding JNI and garbage creation, this reduces the cost of both
    methods by ~10x on Android, from ~25us call to ~2us.
    
    BUG=501503003
    
    Review URL: https://codereview.chromium.org/502993004
    
    Cr-Commit-Position: refs/heads/master@{#301136}
    b5a33976
events.gyp 13.6 KB