commit | ab84e11cb5f3e3d257f78ceae64dff80e8e83315 | [log] [tgz] |
---|---|---|
author | Brian Lindahl <blindahl@google.com> | Thu Jun 15 14:19:43 2023 -0600 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Sat Jun 24 01:56:27 2023 +0000 |
tree | 0aa71e9331185eb61ae0713dd23df4eafe51c720 | |
parent | 5b67578ab3bf095e357e91c49195dfe7907f3c98 [diff] [blame] |
Force HALs to explicitly enable legacy method for clearing buffer caches Some HAL implementations can't support setLayerBuffer multiple times to clear the per-layer buffer caches. Therefore, default this behavior to disabled, and allow HALs to explcitily enable this behavior to obtain the necessary memory savings. Test: play videos with both true and false on both HIDL and AIDL Bug: 285561686 (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:f70d9c4528888134e16003470b76dd1e81b8631d) Merged-In: I928cef25e35cfc5337db4ceb8581bf5926b4fbe3 Change-Id: I928cef25e35cfc5337db4ceb8581bf5926b4fbe3
diff --git a/services/surfaceflinger/DisplayHardware/AidlComposerHal.h b/services/surfaceflinger/DisplayHardware/AidlComposerHal.h index ce05b38..b8ae26f 100644 --- a/services/surfaceflinger/DisplayHardware/AidlComposerHal.h +++ b/services/surfaceflinger/DisplayHardware/AidlComposerHal.h
@@ -284,6 +284,8 @@ // threading annotations. ftl::SharedMutex mMutex; + // Whether or not explicitly clearing buffer slots is supported. + bool mSupportsBufferSlotsToClear; // Buffer slots for layers are cleared by setting the slot buffer to this buffer. sp<GraphicBuffer> mClearSlotBuffer;