summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2015-07-09 14:19:01 -0700
committerJohn Reck <jreck@google.com>2015-07-09 21:25:52 +0000
commit7209deedcde98ea0cca519e73d910bafa5193334 (patch)
tree659d736fb692e48877d88da3c3e54ff7cd876080 /tools/aapt2/java/JavaClassGenerator_test.cpp
parentadebbebaa7d516628b5946dd023ff8726e75d2b0 (diff)
Delete dead code
Bug: 22378829 Every time setText is called a BoringLayout is created. BoringLayout internally creates a new Paint called mWorkPaint. However, creating a Paint turns out to be somewhat substantial amount of work, and mWorkPaint is never actually used. Deleting this shaves off roughly 50ms and 1,000 object creations during a fling on a listview. Change-Id: I5d03402b9027df6ce0f3e58160752c66c69a4d2d
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions