commit | 781d72590f31f774ca707154229bbfcfac9f7c97 | [log] [tgz] |
---|---|---|
author | Vishnu Nair <vishnun@google.com> | Mon Jan 30 18:16:01 2023 +0000 |
committer | Vishnu Nair <vishnun@google.com> | Mon Jan 30 21:14:51 2023 +0000 |
tree | 12ffe35c43da7da35af2b64cf60939b68a61667a | |
parent | dff1554cc8c39f4a64e74a50c0371bd0b794239f [diff] [blame] |
SF: Use snapshots for TrustedPresentationListener updates Also pass the correct display to the compute function. Bug: 238781169 Test: presubmit Change-Id: I465f275fa1247ff98b4d578a26416d8c100170de
diff --git a/services/surfaceflinger/FrontEnd/LayerSnapshot.cpp b/services/surfaceflinger/FrontEnd/LayerSnapshot.cpp index 4e69565..dbb7fbf 100644 --- a/services/surfaceflinger/FrontEnd/LayerSnapshot.cpp +++ b/services/surfaceflinger/FrontEnd/LayerSnapshot.cpp
@@ -168,4 +168,11 @@ return debug.str(); } +FloatRect LayerSnapshot::sourceBounds() const { + if (!externalTexture) { + return geomLayerBounds; + } + return geomBufferSize.toFloatRect(); +} + } // namespace android::surfaceflinger::frontend