diff options
| author | 2020-08-05 17:02:34 +0300 | |
|---|---|---|
| committer | 2020-08-12 07:24:49 +0000 | |
| commit | dadac5a0ddf1b7aec77057a34025188bf8c64c9d (patch) | |
| tree | dcb089db5693bfa8fa4c81767e54f13ec1868a5a /libs/input/KeyLayoutMap.cpp | |
| parent | 12d24c504621cc5ff117b41726d734475eb8836c (diff) | |
Quick optimization for committing Layers
Layer::commitChildList is a traversal by itself. Running it inside a
traversal results in an undesired n^2 traversal time.
commitChildList is swapping the common state with the drawing state and executes the assignment multiple times / Layer, which could become quite costly.
Change-Id: I15f670b7766a3c2a16abbd3ae20bb8a7c76ec852
Test: atest SurfaceFlinger_test - all tests pass.
Diffstat (limited to 'libs/input/KeyLayoutMap.cpp')
0 files changed, 0 insertions, 0 deletions