summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorjorgegil@google.com <jorgegil@google.com>2021-03-31 16:33:50 -0700
committerjorgegil@google.com <jorgegil@google.com>2021-04-01 13:47:27 -0700
commit04e03fc31fe8d8ebc29c45c1c93ff1ea78e19fa1 (patch)
tree159ad491729f01ae6952b27623254810b25c1d17 /tools/aapt2/java/JavaClassGenerator_test.cpp
parentb5cc4a537bbafe0a84ba74735374291656ec8c98 (diff)
Crop the surface using the rect hint before animating out of PIP
While transitioning from PIP->Fullscreen the surface is uncroped and scaled using the source rect hint from the PIP position to the destination bounds (fullscreen). The animation controller creates its own SurfaceControl.Transaction to apply the scale and crop to the surface, which means that the transform is not applied until the next frame. To avoid this bad frame, apply the initial surface control transaction again after starting the animation using the SurfaceControl.Transaction supplied by the SyncTransactionQueue callback. Bug: 184166183 Test: Enter PIP with YT, exit to fullscreen and verify there's no jank/flash Change-Id: I4e4ba51be03aa86e0629e8d6532c0c4098c21aed
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions