summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorTiger Huang <tigerhuang@google.com>2019-05-07 20:07:59 +0800
committerTiger Huang <tigerhuang@google.com>2019-05-13 20:38:32 +0800
commited6794ece553f42e9f17099e9eaf7f62966f3ac6 (patch)
treed2e637bf2f9080fe7580f7a9ca8a25112c84eefd /tools/aapt2/java/JavaClassGenerator_test.cpp
parent4d5b76d33b32daa197fee18a91371aa461448153 (diff)
Fix a bug about the z-order of layers caused by merging transactions
Each WindowContainer has its own pending transaction. These transactions may be merged to the global one within WindowContainer.prepareSurfaces() in a hierarchy-based order, not in a time-based order. It may cause that a later surface operation overwritten by an earlier surface operation. For example, atokenA.setLayer(t1, 0) was called earlier, and then atokenA.setLayer(t2, 1) was called later. However, the layer of atokenA might eventually be 0 because t1 could be merged into the global transaction later. This CL uses a single transaction per display to solve this problem. Fix: 120282809 Test: atest SurfaceAnimatorTest Test: Manual test with the steps in the issue. Change-Id: Idca57d01d8be884369510642c2d9345b6ee4e3b1
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions