diff options
author | Vishnu Nair <vishnun@google.com> | 2020-05-08 18:03:12 -0700 |
---|---|---|
committer | Vishnu Nair <vishnun@google.com> | 2020-05-11 13:19:59 -0700 |
commit | eb53e523957de8967b0c391166b63fa7835c9833 (patch) | |
tree | 1b10a3ca8e2dcb72bc853821bd310dd5fc57a6d8 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 5d92729cbc864cdc2534d10d79dc6be7fe9b09b1 (diff) |
Provide a fixed transform hint if the layer is in a fixed orientation 2/2
The transform hint is used to prevent allocating a buffer of a
different size when a layer is rotated. The producer can choose to
consume the hint and allocate the buffer with the same size.
Provide the graphic producer a transform hint if the layer and its
children are in an orientation different from the display's
orientation. The caller is responsible for clearing this transform
hint if the layer is no longer in a fixed orientation.
Bug: 152919661
Test: atest VulkanPreTransformTest
Test: confirm with winscope trace, buffers are allocated taking into
account the transform hint in fixed orientation scenarios
Test: go/wm-smoke
Change-Id: I2ccc21ed8af015716e6cdfde1e3cec67c99f3339
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions