diff options
| author | 2019-11-12 20:42:12 +0000 | |
|---|---|---|
| committer | 2019-11-12 20:42:12 +0000 | |
| commit | 4460616e18cd7b8572cced8245452d4f55c5b0e3 (patch) | |
| tree | a7b45a0ccc2ecba3454d9997650919c59445662a /libs/gui/SurfaceComposerClient.cpp | |
| parent | 70d79c01c24d1d215f0a7957135e7c5b69f45241 (diff) | |
| parent | c97b8dbd9093c7a8cfeedcd7e417f6732cbe24c6 (diff) | |
Merge "[Shadows] Add shadow radius to sf layer state (2/n)"
Diffstat (limited to 'libs/gui/SurfaceComposerClient.cpp')
| -rw-r--r-- | libs/gui/SurfaceComposerClient.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libs/gui/SurfaceComposerClient.cpp b/libs/gui/SurfaceComposerClient.cpp index 7023311eb9..a538e14dfc 100644 --- a/libs/gui/SurfaceComposerClient.cpp +++ b/libs/gui/SurfaceComposerClient.cpp @@ -1337,6 +1337,18 @@ SurfaceComposerClient::Transaction& SurfaceComposerClient::Transaction::setGeome return *this; } +SurfaceComposerClient::Transaction& SurfaceComposerClient::Transaction::setShadowRadius( + const sp<SurfaceControl>& sc, float shadowRadius) { + layer_state_t* s = getLayerState(sc); + if (!s) { + mStatus = BAD_INDEX; + return *this; + } + s->what |= layer_state_t::eShadowRadiusChanged; + s->shadowRadius = shadowRadius; + return *this; +} + // --------------------------------------------------------------------------- DisplayState& SurfaceComposerClient::Transaction::getDisplayState(const sp<IBinder>& token) { |