summaryrefslogtreecommitdiff
path: root/libs/gui/LayerState.cpp
diff options
context:
space:
mode:
author Vishnu Nair <vishnun@google.com> 2022-10-05 16:59:56 -0700
committer Vishnu Nair <vishnun@google.com> 2022-10-06 03:28:52 +0000
commit59f6d2df6cbc895651eb2628c9f98505ed9de8bf (patch)
tree4ccb96004846f9fb507f0e413db68e4eafdffde0 /libs/gui/LayerState.cpp
parent1523dad8dc7c2cd9a110e0839ada541f49920a75 (diff)
SF: Add TransactionHandler
- migrate transaction queueing and flushing into a new class and remove dependencies from other components. - Add a filter interface for other components to participate in transactionready logic. Test: presubmit Bug: 238781169 Change-Id: Ia4da386cd72058126f6f765adafb9cb4d15b1d2b
Diffstat (limited to 'libs/gui/LayerState.cpp')
-rw-r--r--libs/gui/LayerState.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/gui/LayerState.cpp b/libs/gui/LayerState.cpp
index 4d5978ccf7..2759c58fb1 100644
--- a/libs/gui/LayerState.cpp
+++ b/libs/gui/LayerState.cpp
@@ -634,7 +634,7 @@ bool layer_state_t::hasBufferChanges() const {
}
bool layer_state_t::hasValidBuffer() const {
- return bufferData && (bufferData->buffer || bufferData->cachedBuffer.isValid());
+ return bufferData && (bufferData->hasBuffer() || bufferData->cachedBuffer.isValid());
}
status_t layer_state_t::matrix22_t::write(Parcel& output) const {