Mitigation for mass GC deletion
Delete sessions after 2 seconds from when CC::destroy() is called, to ensure they get the chance to be re-used without being destroyed but still get destroyed if they aren't re-used. This also adds several new unit tests around the functionality to ensure its thread-safety. Test: hwuitest Bug: 300360668 Change-Id: Icc35293ff49e14dc3599fc12d153f70acd29042a
Showing
- libs/hwui/renderthread/CanvasContext.cpp 7 additions, 6 deletionslibs/hwui/renderthread/CanvasContext.cpp
- libs/hwui/renderthread/CanvasContext.h 1 addition, 1 deletionlibs/hwui/renderthread/CanvasContext.h
- libs/hwui/renderthread/HintSessionWrapper.cpp 31 additions, 6 deletionslibs/hwui/renderthread/HintSessionWrapper.cpp
- libs/hwui/renderthread/HintSessionWrapper.h 9 additions, 1 deletionlibs/hwui/renderthread/HintSessionWrapper.h
- libs/hwui/tests/unit/HintSessionWrapperTests.cpp 137 additions, 1 deletionlibs/hwui/tests/unit/HintSessionWrapperTests.cpp
Please register or sign in to comment