summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragment.java
diff options
context:
space:
mode:
authorShuzhen Wang <shuzhenwang@google.com>2019-12-28 21:49:20 -0800
committerShuzhen Wang <shuzhenwang@google.com>2020-01-02 08:55:29 -0800
commitfe33a3aa32eb838b641c71c94deb65b638498214 (patch)
tree150e6cf42afe51c6281a443395708dc8478f78d6 /rs/java/android/renderscript/ProgramFragment.java
parent6b7926d1fccd554da360b9c42d7d820c0c7f4a5e (diff)
Camera: Cache tag id to avoid repeatative lookup
Looking up tag id based on tag name for each key is potentially time consuming. Instead, cache the id in the Key object so that only when the first getTag() triggers a look-up. All subsequent calls doesn't do look-up. Bug: 144028609 Test: Run GCA and observe CameraMetadata CPU consumption Change-Id: Iadd92e7e3b6cb4d610a6c9704ca2066291291f43
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragment.java')
0 files changed, 0 insertions, 0 deletions