diff options
author | Vishnu Nair <vishnun@google.com> | 2021-04-22 14:17:32 -0700 |
---|---|---|
committer | Vishnu Nair <vishnun@google.com> | 2021-04-22 14:18:37 -0700 |
commit | 8685ce1deecdd73bb8fc19b620123704df6ae77b (patch) | |
tree | e99a69584304c80381501565ae08bfe3f6a794d5 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | d78b21c54858a5164fd239097efcd0805f0767ba (diff) |
Fix SurfaceView callback timings
In R we consolidated SetWindowStopped to use ViewRootImpl
surface changed callbacks. This affected the timings of when
the app would get SurfaceView SurfaceHolder callbacks. The
callbacks would be invoked in ViewRootImpl traversal before
the measure pass. If the app tried to add to the view hierarchy
in the callback, the view would not measure and layout the
new view properly.
To fix this, move the ViewRootImp SurfaceChangedCallback
after the measure pass.
Test: app in bug can add a view from SurfaceHolder.Callback#surfaceCreated
Fixes: 181529599
Change-Id: I06923113f7fc8e90242060c34f1d309d53b5a87b
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions