Further improve performance of VRR
Bug: 330765659
Bug: 330806626
Bug: 330818088
Bug: 330785773
Removed getTranslationX()/getTranslationY() calls during
invalidation.
Changed flag reading to use final constants.
Use int instead of long for duration millis comparison.
Use "switch" statement instead of consecutive "if"
statements.
Moved update time to updateDisplayListIfDirty() rather
than during invalidation in case invaliation happens
multiple times per draw.
Test: ran performance check. Now at 12% overhead
Change-Id: I10510f0f686f1430791e0ae3e5de6f99bad3593c
3 files changed