diff options
author | Robert Carr <racarr@google.com> | 2017-05-30 11:25:22 -0700 |
---|---|---|
committer | Robert Carr <racarr@google.com> | 2017-05-30 11:47:14 -0700 |
commit | 486bbb73c8190e6b377ea0bdf6b598503f3b0d04 (patch) | |
tree | ab39ea8730121e944ccf13af9d0136c4fa488d05 /rs/java/android/renderscript/ProgramVertexFixedFunction.java | |
parent | 5366cfbef3089153a0d15b052fcca53e7c8dc32c (diff) |
Prevent unnecesary Surface preservation.
We don't save the Surface's pixel format, and so any time
there is a change in the pixel format as described in the params
we trigger a surface preservation. However if an app is switching
from forced translucent (due to HW accel) to explicitly translucent
even though the layout params have changed we don't actually need
to trigger a format change, just toggle the OPAQUE flag.
Bug: 38324871
Test: Launch Chrome Custom Tabs with Lateral Transition Animation from News and Weather App. No black bars. go/wm-smoke
Change-Id: I2151b4470fd7c395fba7aad7d6ffca4c51e55476
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions