diff options
author | 2021-01-29 17:52:52 +0000 | |
---|---|---|
committer | 2021-01-29 17:52:52 +0000 | |
commit | 31999efbac943af5c43c64a6929d5fe5857c6532 (patch) | |
tree | 596a67ae387127da902645f1029b1d298ba40b63 /libs/gui/LayerState.cpp | |
parent | aebf2476c302a93fe177a8e9f1824c530d9f216b (diff) | |
parent | f6eddb6b42a9548f1298e899ea06a7a042182783 (diff) |
Merge "Enable backpressure for BufferStateLayer" into sc-dev
Diffstat (limited to 'libs/gui/LayerState.cpp')
-rw-r--r-- | libs/gui/LayerState.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/libs/gui/LayerState.cpp b/libs/gui/LayerState.cpp index e5e10a0014..2946aaed37 100644 --- a/libs/gui/LayerState.cpp +++ b/libs/gui/LayerState.cpp @@ -183,12 +183,9 @@ status_t layer_state_t::read(const Parcel& input) SAFE_PARCEL(input.readUint32, &layerStack); SAFE_PARCEL(input.readFloat, &alpha); - uint32_t tmpUint32 = 0; - SAFE_PARCEL(input.readUint32, &tmpUint32); - flags = static_cast<uint8_t>(tmpUint32); + SAFE_PARCEL(input.readUint32, &flags); - SAFE_PARCEL(input.readUint32, &tmpUint32); - mask = static_cast<uint8_t>(tmpUint32); + SAFE_PARCEL(input.readUint32, &mask); SAFE_PARCEL(matrix.read, input); SAFE_PARCEL(input.read, crop_legacy); @@ -229,6 +226,7 @@ status_t layer_state_t::read(const Parcel& input) SAFE_PARCEL(input.read, *acquireFence); } + uint32_t tmpUint32 = 0; SAFE_PARCEL(input.readUint32, &tmpUint32); dataspace = static_cast<ui::Dataspace>(tmpUint32); |