Skip to content
Commit 07cb272a authored by wilsonshih's avatar wilsonshih
Browse files

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
parent bfdf19c4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment