summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Vishnu Nair <vishnun@google.com> 2021-03-02 17:33:27 -0800
committer Vishnu Nair <vishnun@google.com> 2021-03-02 17:33:33 -0800
commit58bf7e24914acb944dd58658b545a75d08140e7c (patch)
treee90f75119445f3fcf7e50f1644f3244005f01794
parenta8bad0e28a3ba92eed11b75d1e18f00b79f70efa (diff)
Avoid marking visible regions as dirty when metadata changes
This will trigger additional work by the main thread. This is a quick fix before cleaning up layer state sequence ids. Test: systrace and check we are not recomputing bounds when there are no geometry changes Fixes: 181369288 Change-Id: I6accbc6f6463f816c42e6a000900f15de982eb4b
-rw-r--r--services/surfaceflinger/Layer.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/services/surfaceflinger/Layer.cpp b/services/surfaceflinger/Layer.cpp
index 937868a413..061ad0e03e 100644
--- a/services/surfaceflinger/Layer.cpp
+++ b/services/surfaceflinger/Layer.cpp
@@ -1339,7 +1339,6 @@ bool Layer::setCrop_legacy(const Rect& crop) {
bool Layer::setMetadata(const LayerMetadata& data) {
if (!mCurrentState.metadata.merge(data, true /* eraseEmpty */)) return false;
- mCurrentState.sequence++;
mCurrentState.modified = true;
setTransactionFlags(eTransactionNeeded);
return true;