Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 40618595 authored by Greg Daniel's avatar Greg Daniel
Browse files

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
parent d77e9131
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment