diff options
| author | 2021-07-09 19:46:33 +0000 | |
|---|---|---|
| committer | 2021-07-09 19:46:33 +0000 | |
| commit | dc4ab87413653a8d137eaf4a5d96b56503a95885 (patch) | |
| tree | 98d50c5844a0a0b9ebf1d4661b3028b46664986d /libs/gui/LayerState.cpp | |
| parent | 48f65b791db49bb86ccdd1aed8ffc966dd3e4766 (diff) | |
| parent | 90b688e0871de6088a7f77f3522df440a88e676f (diff) | |
Merge "SF: fix BufferTX counter for null buffers" into sc-dev am: 90b688e087
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/15240586
Change-Id: Id0f9b0a9ae09df362aa49121d168ad5d31f857ec
Diffstat (limited to 'libs/gui/LayerState.cpp')
| -rw-r--r-- | libs/gui/LayerState.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/gui/LayerState.cpp b/libs/gui/LayerState.cpp index 001570c391..17d614eab2 100644 --- a/libs/gui/LayerState.cpp +++ b/libs/gui/LayerState.cpp @@ -564,6 +564,10 @@ bool layer_state_t::hasBufferChanges() const { return (what & layer_state_t::eBufferChanged) || (what & layer_state_t::eCachedBufferChanged); } +bool layer_state_t::hasValidBuffer() const { + return buffer || cachedBuffer.isValid(); +} + status_t layer_state_t::matrix22_t::write(Parcel& output) const { SAFE_PARCEL(output.writeFloat, dsdx); SAFE_PARCEL(output.writeFloat, dtdx); |