diff options
author | 2025-03-24 18:39:51 -0700 | |
---|---|---|
committer | 2025-03-24 18:39:51 -0700 | |
commit | 3115163545c2f5b5857133e2d36c3230c04e93d4 (patch) | |
tree | 5b957180779cdb1f93d179daf674e52dceb7fcc1 /libs/gui/SurfaceComposerClient.cpp | |
parent | 386a6107ffa791b211711f4bee75daf05cb87cb6 (diff) | |
parent | e20c771af74eddef569070fe9940fe845b769a30 (diff) |
Snap for 13264465 from e20c771af74eddef569070fe9940fe845b769a30 to 25Q2-release
Change-Id: Ic34a235cf44331131a19f1f80d1cbaf0b915eaec
Diffstat (limited to 'libs/gui/SurfaceComposerClient.cpp')
-rw-r--r-- | libs/gui/SurfaceComposerClient.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libs/gui/SurfaceComposerClient.cpp b/libs/gui/SurfaceComposerClient.cpp index 69ba1d731d..786bc06f64 100644 --- a/libs/gui/SurfaceComposerClient.cpp +++ b/libs/gui/SurfaceComposerClient.cpp @@ -2025,6 +2025,19 @@ SurfaceComposerClient::Transaction& SurfaceComposerClient::Transaction::setShado return *this; } +SurfaceComposerClient::Transaction& SurfaceComposerClient::Transaction::setBorderSettings( + const sp<SurfaceControl>& sc, gui::BorderSettings settings) { + layer_state_t* s = getLayerState(sc); + if (!s) { + mStatus = BAD_INDEX; + return *this; + } + + s->what |= layer_state_t::eBorderSettingsChanged; + s->borderSettings = settings; + return *this; +} + SurfaceComposerClient::Transaction& SurfaceComposerClient::Transaction::setFrameRate( const sp<SurfaceControl>& sc, float frameRate, int8_t compatibility, int8_t changeFrameRateStrategy) { |