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
Loading
Please register or sign in to comment