memory optimize Signed-off-by: ustc-tianyu <dutianyu4@huawei.com>

This commit is contained in:
ustc-tianyu 2024-10-31 20:50:06 +08:00
parent 1902a37764
commit 1fa16e13f9

View File

@ -294,9 +294,9 @@ void DrawCmdList::UnmarshallingDrawOps()
} while (offset != 0);
lastOpGenSize_ = opAllocator_.GetSize();
if ((int)imageAllocator_.GetSize() > 0) {
imageAllocator_.ClearData();
}
opAllocator_.ClearData();
imageAllocator_.ClearData();
bitmapAllocator_.ClearData();
if (performanceCaculateOpType_ != 0) {
LOGI("Drawing Performance UnmarshallingDrawOps end %{public}lld", PerformanceCaculate::GetUpTime());