summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/BufferStateLayer.cpp
diff options
context:
space:
mode:
author Rob Carr <racarr@google.com> 2021-06-25 20:33:08 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2021-06-25 20:33:08 +0000
commit2bd3639d1651cd8aae4ef5e7e9b77fcce729be92 (patch)
treed6b302d67a44bddd97bb49ccb883969fb6c9606e /services/surfaceflinger/BufferStateLayer.cpp
parent84340f77a5c68208bd5e508e82f06b98170cd079 (diff)
parent315f3c74f68483241ee523126aff925d8ddeda74 (diff)
Merge "Fix latching of final buffer when moving off-screen and destroying" into sc-dev
Diffstat (limited to 'services/surfaceflinger/BufferStateLayer.cpp')
-rw-r--r--services/surfaceflinger/BufferStateLayer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/surfaceflinger/BufferStateLayer.cpp b/services/surfaceflinger/BufferStateLayer.cpp
index 6b5cf04536..c662bc2306 100644
--- a/services/surfaceflinger/BufferStateLayer.cpp
+++ b/services/surfaceflinger/BufferStateLayer.cpp
@@ -725,7 +725,7 @@ bool BufferStateLayer::latchSidebandStream(bool& recomputeVisibleRegions) {
bool BufferStateLayer::hasFrameUpdate() const {
const State& c(getDrawingState());
- return mDrawingStateModified && (c.buffer != nullptr || c.bgColorLayer != nullptr);
+ return (mDrawingStateModified || mDrawingState.modified) && (c.buffer != nullptr || c.bgColorLayer != nullptr);
}
status_t BufferStateLayer::updateTexImage(bool& /*recomputeVisibleRegions*/, nsecs_t latchTime,