commit | b8aaea16b889ef4859138cc528986551001f3add | [log] [tgz] |
---|---|---|
author | David Sodman <dsodman@google.com> | Thu Dec 14 15:54:51 2017 -0800 |
committer | David Sodman <dsodman@google.com> | Thu Aug 09 19:07:19 2018 -0700 |
tree | 076d4aa5b8f4fc3cfea4a39beea17659e68acfa1 | |
parent | f4c8f3869475239fc2105d557b5f3527360c31c2 [diff] |
SF: use shared_ptr to track hwcLayer Use std::shared_ptr to track hwcLayer pointers. This is necessary because the calculation of data for HWComposer is done in Layer and the processing of that data is done in SurfaceFlinger, and we need to make sure that the hwcLayer is not destroyed by Layer while or before being used by SurfaceFlinger. Bug: 112259502 Test: cts -m CtsViewTestCases SurfaceFlinger_test vrflinger_test Change-Id: I683dd071efbeebd9a9941053183daf4efb88469e