diff options
author | 2025-03-24 11:12:01 -0700 | |
---|---|---|
committer | 2025-03-24 11:12:01 -0700 | |
commit | 631b37078a3d09e2ee5f574fc27543e86991d079 (patch) | |
tree | 96a44c8b90d71db13ea0e753ba713d260949759c /libs/gui/SurfaceComposerClient.cpp | |
parent | e511fd4008548784561ef38304885293b50a8141 (diff) | |
parent | 65fb1c6daa8234ddc9f2d06972efcb40a425522e (diff) |
Merge "Add border API to surface control" into main
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) { |