summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorchaviw <chaviw@google.com>2020-12-29 10:32:37 -0800
committerchaviw <chaviw@google.com>2020-12-29 10:43:04 -0800
commit6fbb788fbdfa7f019991920820ca2569308ae776 (patch)
treef26751847e2406a36180e120532139198ac5cc29 /tools/aapt2/java/JavaClassGenerator_test.cpp
parentb5048e482e7551b58465a50fb5afbd4580e6e4a5 (diff)
Fix blur in ViewRootImpl
The blur code in ViewRootImpl had a few issues 1. The transaction was applied or merged in frameCompleteCallback. This is too late since the frame could have already been sent to SurfaceFlinger and possibly latched already. We need to make sure we apply or merge the transaction before latching. Therefore, moved the blur request code into the frameCallback, which is invoked before the buffers are swapped. 2. The blur code was using the blast sync transaction. This means the blur would only get applied if a request to sync transactions was called, which isn't very often. Instead, use mergeWithNextTransaction which will send the transaction to the BBQ. The BBQ will either apply it when the buffers are swapped or merge with a pending transaction that is applied later to work with blast sync. This ensures the transaction is synchronized with the correct frame Test: manual Bug: 174145445 Change-Id: Id36719c03f18739513e3198602c8a7ec4fd8da69
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions