summaryrefslogtreecommitdiff
path: root/libs/gui/LayerState.cpp
diff options
context:
space:
mode:
author Ady Abraham <adyabr@google.com> 2021-07-09 19:54:47 +0000
committer Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> 2021-07-09 19:54:47 +0000
commit5d9ee0e6237d7972f3b9f784d40d85f40fe9c0a3 (patch)
tree2b903c267e4b915cc94c2d10aa6e39ffb4a62d90 /libs/gui/LayerState.cpp
parent1d2306699892b9e52b509b04e4370c7589b908f6 (diff)
parentd30b463f5d11ea751d02e2499c965c4cf72717c2 (diff)
Merge "SF: fix BufferTX counter for null buffers" into sc-dev am: 90b688e087 am: d30b463f5d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/15240586 Change-Id: I201b6fd062f10dff59ca96f0ac0106a249f9aedc
Diffstat (limited to 'libs/gui/LayerState.cpp')
-rw-r--r--libs/gui/LayerState.cpp4
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);