summaryrefslogtreecommitdiff
path: root/libs/androidfw/ZipFileRO.cpp
diff options
context:
space:
mode:
author Matt Buckley <mattbuckley@google.com> 2023-08-29 17:55:46 +0000
committer Matt Buckley <mattbuckley@google.com> 2023-08-29 18:23:34 +0000
commit9f3654e683e7c843b848c46747206da0999d6dca (patch)
tree3d730c9f8878cd91ca58574f4cd79dff9ae8fb66 /libs/androidfw/ZipFileRO.cpp
parentac620f64a32500890007b0b405ca72405d6db41e (diff)
Prevent session destruction on CanvasContext::destroy()
While sessions not getting destructed on CanvasContext::destroy() was initially suspected as a culprit for a memory leak, there are many cases where CanvasContexts are repeatedly destroyed then reused. This caused excessive re-creation and prevented hints from being sent, since hints can't send while waiting for the session, causing regression. The session will ultimately get destroyed in CanvasContext's destructor, so leaving these sessions active for the lifecycle of CanvasContext is fine, especially since the session is usually getting reset before new work comes in anyway. Bug: 297604399 Test: uibench runs of regressed metrics Change-Id: I209e40764d5bbcde85d709bccbc41f94f9c2ab49
Diffstat (limited to 'libs/androidfw/ZipFileRO.cpp')
0 files changed, 0 insertions, 0 deletions