commit | cbdb79a195e6c690e16948a7e7c3abbd36414b17 | [log] [tgz] |
---|---|---|
author | Robert Carr <racarr@google.com> | Fri Jun 11 16:10:45 2021 -0700 |
committer | Robert Carr <racarr@google.com> | Fri Oct 08 11:48:12 2021 -0700 |
tree | 8581393599c44607b26070f85c48a84c7d10ddb7 | |
parent | 9666ac5932806ba3dc1350f984818669414535e4 [diff] |
Layer: Use raw pointers for Current/Drawing parent We should only be reading/writing this from the main thread and likewise we only delete layers on the main thread and so using raw pointers and managing the lifetime from the Layer destructor will be safe. This significantly decreases overhead in various code that traverses via parent (getAlpha, isVisible, etc...). Test: Existing tests pass. simpleperf Bug: 186200583 Change-Id: I45745f7c865177ddfe9105d1440a9fa8f3470823