diff options
| author | 2021-07-09 19:45:44 +0000 | |
|---|---|---|
| committer | 2021-07-09 19:45:44 +0000 | |
| commit | d30b463f5d11ea751d02e2499c965c4cf72717c2 (patch) | |
| tree | 87d39c265b324031e7de892df6b2c80ea4ada21d /libs/gui/LayerState.cpp | |
| parent | 4c5cf99db7053127d8cdfd902f84457fa05c80b6 (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: Ib4b14063dd4a2f8c8b3919cf27d8b84c8a9ee9bd
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 e65c721ae1..2d99fc1903 100644 --- a/libs/gui/LayerState.cpp +++ b/libs/gui/LayerState.cpp @@ -562,6 +562,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); |