diff options
| author | 2025-02-05 11:11:50 -0800 | |
|---|---|---|
| committer | 2025-02-05 11:11:50 -0800 | |
| commit | ad9d51479938dba2b99df5fbd069dde9ee53bf49 (patch) | |
| tree | daec36cec518e18982059913c96ec7ee3fc93f2f /services/surfaceflinger/LayerFE.cpp | |
| parent | 01e3f8a348b379917f331d9b8ad2611e13b42928 (diff) | |
Demarcate cached sets in composition summary
Previously, the composition summary indicated that HWC was compositing
more layers than it actually was.
Example when youtube video open and playing in a free form window
Before: bbrrrRrbbb
After: [b:brr]r[R:rbbb]
So there are 2 cached sets and 1 uncached set. One cached set and one uncached layer is composited by HWC, the other cached set is composed by the GPU.
Bug: 391428079
Flag: EXEMPT log only update
Test: Capture perfetto trace and confirm layers are skipped and overridden as expected
Change-Id: I4ffda43f5248ef8bb690cdaca0eeca7ffac3d997
Diffstat (limited to 'services/surfaceflinger/LayerFE.cpp')
| -rw-r--r-- | services/surfaceflinger/LayerFE.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/services/surfaceflinger/LayerFE.cpp b/services/surfaceflinger/LayerFE.cpp index 725a782177..b6192685ae 100644 --- a/services/surfaceflinger/LayerFE.cpp +++ b/services/surfaceflinger/LayerFE.cpp @@ -428,13 +428,12 @@ LayerFE::ReleaseFencePromiseStatus LayerFE::getReleaseFencePromiseStatus() { return mReleaseFencePromiseStatus; } -void LayerFE::setHwcCompositionType( - aidl::android::hardware::graphics::composer3::Composition type) { - mLastHwcCompositionType = type; +void LayerFE::setLastHwcState(const LayerFE::HwcLayerDebugState &state) { + mLastHwcState = state; } -aidl::android::hardware::graphics::composer3::Composition LayerFE::getHwcCompositionType() const { - return mLastHwcCompositionType; -} +const LayerFE::HwcLayerDebugState& LayerFE::getLastHwcState() const { + return mLastHwcState; +}; } // namespace android |