commit | 07cb272a507047eb5f2eca90590a3f65cb8d863d | [log] [tgz] |
---|---|---|
author | wilsonshih <wilsonshih@google.com> | Mon Mar 16 23:19:24 2020 +0800 |
committer | wilsonshih <wilsonshih@google.com> | Mon Mar 23 09:38:47 2020 +0800 |
tree | 89ce5bd3509de87022dc5cc9bb659d99ded60a9c | |
parent | bfdf19c46d7da3bd5f10c7db91c7703bf7e466e3 [diff] |
Surface should not be created for WindowContext initially. Client may create a WindowContext, but without adding a window using the corresponding WindowToken, initially creating a surface for the token is very wasteful. To avoid this, we should only create surfaces when the client is needed. Bug: 150813033 Test: atest WindowTokenTests Test: No system crash when running FocusHandlingTest. Change-Id: I0def6a436ad9d60948bfb029b3a7b6b44466d068