summaryrefslogtreecommitdiff
path: root/libs/gui/BLASTBufferQueue.cpp
diff options
context:
space:
mode:
author Robert Carr <racarr@google.com> 2021-07-28 11:26:51 -0700
committer Rob Carr <racarr@google.com> 2021-07-28 22:38:15 +0000
commit167bdde88b9159c62c5c4d839e7615c94e7851dc (patch)
tree27849230e2b6070a22ad6b86f3dd08d861154f40 /libs/gui/BLASTBufferQueue.cpp
parent6a409e17600f320134dea722247c15770030d7b2 (diff)
Prevent HDRLayerInfoListener traversal from running on every frame
We should only have to update the HDRLayerInfoListener in a few scenarios. 1. A new listener appeared 2. A buffer changed colorspace 3. Surface geometry (visibility, parenting, display, etc) changed We protect the traversal behind these flags to avoid the runtime in the hot path of continuous buffer updates. A follow up fix could consider directly recursively traversing and early returning if !Layer->isVisible. Bug: 186200583 Test: Existing tests pass, simpleperf Change-Id: I549fdf6ea228344f79f6989b86b8e73a6065158a
Diffstat (limited to 'libs/gui/BLASTBufferQueue.cpp')
0 files changed, 0 insertions, 0 deletions