commit | 4dde7d19cbe19d8082b2d86820952d9e0d3d8501 | [log] [tgz] |
---|---|---|
author | youngmin0822.lee <youngmin0822.lee@lge.com> | Mon Jul 09 14:25:32 2018 +0900 |
committer | youngmin0822.lee <youngmin0822.lee@lge.com> | Mon Jul 09 15:27:43 2018 +0900 |
tree | c035a795368c89da57ab9f3a78724864a54e6ee8 | |
parent | af228ca978941f98d54ba70f7bfc790cf2d69f51 [diff] |
don't call setSize() when creating SurfaceControl When SurfaceControl is created with creating variable in updateSurface(), sizeChanged is also set. So, setSize() is called, and it blocks UI thread until the transaction is handled in SF. There is no need to resize in the creation time, because size is already set when creating SurfaceControl. Test: systrace any app including SurfaceView Change-Id: I65028b4d0d0ba2b75fbe089c98a11a56b6c08104