diff options
author | chaviw <chaviw@google.com> | 2020-10-07 11:38:22 -0700 |
---|---|---|
committer | chaviw <chaviw@google.com> | 2020-10-14 17:13:59 -0700 |
commit | 25c129cc6aff0ebd033843739d97bd1ec3c9cd38 (patch) | |
tree | 95fd1184bf731cd319b541a24a46155886c485e7 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | ae00abf8ed1f483d7d444ca335fd86ca362e46bf (diff) |
Changed logic about how to check if VRI replaced its surface.
SurfaceView checks if VRI hasn't changed its surface when deciding
whether to call updateRelativeZ in updateSurface. This is to give
surfaceReplaced a chance to send the updateRelativeZ in the same
transaction as swapping the surfaces.
However, SV was only checking generation id, which may not have changed
when using a blast layer. Instead, VRI will increment the sequence id
when the surface has been replaced. SV can check that value and only
do an immediate updateRelativeZ when the sequence id has not changed.
Test: Blast + Split + SV with no flicker
Change-Id: Icdf9f1fbe12fe77052030aa37d808517c5a6cd38
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions