diff options
author | 2019-10-29 18:19:35 -0700 | |
---|---|---|
committer | 2019-10-30 01:20:41 +0000 | |
commit | c97b8dbd9093c7a8cfeedcd7e417f6732cbe24c6 (patch) | |
tree | 1851287287ac16f9c978542ca0ef08793a6a2a50 /libs/gui/LayerState.cpp | |
parent | 7b3a312f385e1fc8c3694ffeafc18794e96a95f1 (diff) |
[Shadows] Add shadow radius to sf layer state (2/n)
Bug: 136561771
Test: atest SurfaceFlinger_Test
Change-Id: Icafe852eaad195163b48b802db2a4b092aa30926
Diffstat (limited to 'libs/gui/LayerState.cpp')
-rw-r--r-- | libs/gui/LayerState.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/gui/LayerState.cpp b/libs/gui/LayerState.cpp index e004e9584c..e392bc597f 100644 --- a/libs/gui/LayerState.cpp +++ b/libs/gui/LayerState.cpp @@ -406,6 +406,12 @@ void layer_state_t::merge(const layer_state_t& other) { what |= eMetadataChanged; metadata.merge(other.metadata); } + + if (other.what & eShadowRadiusChanged) { + what |= eShadowRadiusChanged; + shadowRadius = other.shadowRadius; + } + if ((other.what & what) != other.what) { ALOGE("Unmerged SurfaceComposer Transaction properties. LayerState::merge needs updating? " "other.what=0x%" PRIu64 " what=0x%" PRIu64, |