summaryrefslogtreecommitdiff
path: root/libs/androidfw/ConfigDescription.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 22:45:21 +0000
commitf1376d83da48c5e028a78a19b9cade38908a16b3 (patch)
tree9cdc3f387bcfe2ebc20a9d7454317a324ad363eb /libs/androidfw/ConfigDescription.cpp
parent071a9f92251c56ce865f153c288784b7d2e4db20 (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 Merged-In: I209e40764d5bbcde85d709bccbc41f94f9c2ab49 (cherry picked from commit 9f3654e683e7c843b848c46747206da0999d6dca)
Diffstat (limited to 'libs/androidfw/ConfigDescription.cpp')
0 files changed, 0 insertions, 0 deletions