summaryrefslogtreecommitdiff
path: root/libs/gui/BufferQueueThreadState.cpp
diff options
context:
space:
mode:
author Alec Mouri <alecmouri@google.com> 2021-04-22 11:57:52 -0700
committer Alec Mouri <alecmouri@google.com> 2021-04-22 12:19:01 -0700
commit64d3b59c97696074239d2bfb374eb4bd02c0a08c (patch)
tree0324dab474160ff94bf36c38e52fa47d87450a8f /libs/gui/BufferQueueThreadState.cpp
parentf7891609c94da133f23706cdb262c32fa895eaa9 (diff)
Add a stricter check for resetting all cached sets.
Presently cached sets are reset if the previously seen layer geometry hashed to the same value as the incoming layer geometry. But because hashing does not guarantee uniqueness, this check is not inclusive enough to check for invalidating the cached sets since it does not correctly invalidate when there is a colliding geometry. Instead, check for equality of the LayerState geometries directly, which is computationally equivalent to computing the hash but guarantees that unique geometries do not equal each other. Bug: 185728087 Test: libcompositionengine_test Test: camera app no longer crashes when switching between cameras. Change-Id: I2a5e918464690d7e7f54ecd73b8eb7631d2aed9c
Diffstat (limited to 'libs/gui/BufferQueueThreadState.cpp')
0 files changed, 0 insertions, 0 deletions