summaryrefslogtreecommitdiff
path: root/libs/gui/ConsumerBase.cpp
diff options
context:
space:
mode:
author Greg Daniel <egdaniel@google.com> 2024-12-17 21:11:58 +0000
committer Greg Daniel <egdaniel@google.com> 2025-01-08 10:04:40 -0800
commit406185955c47a396515c1a2970318bfc39b94f66 (patch)
tree0c54fbf31a70e2a7b99ffbdbe2a06adbde09a615 /libs/gui/ConsumerBase.cpp
parentd77e9131dbeac269f1f35524c8aceaff2bc4e087 (diff)
Implement functions for managing Graphite memory budget.
The main fix in this change is to make sure we are actually setting the memory budget when using Graphite. Previously we were using the default Graphite budget which was much higher than what we would normally want. Additionally, this implemented the purgeUnlcokedScratchResources() call. This is called when switching between protected and non-protected contexts. Finally this fixed dumpMemoryStatistics to also dump memory held by the Recorder. Bug: b/293371537, b/385380555 Test: manual comparison of memory metric Flag: com.android.graphics.surfaceflinger.flags.graphite_renderengine Change-Id: I02befd7caa0b9eeb90316a082425a9905d91c57b
Diffstat (limited to 'libs/gui/ConsumerBase.cpp')
0 files changed, 0 insertions, 0 deletions