summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Robert Carr <racarr@google.com> 2021-06-11 13:26:56 -0700
committer Robert Carr <racarr@google.com> 2021-06-21 21:48:54 -0700
commitbf14dbb65b55986525ec3703849a8338494bf65f (patch)
tree78aa6383e175f9b87ec05d3028f611d27c665362
parent0aa188a360048c8e4c35a878d9416207c67bab26 (diff)
Factor inputinfo changed out of doTransaction
Test: Existing tests pass. simpleperf Bug: 186200583 Change-Id: Ic426d55f8e61481033159cd11609efe92f8330b3
-rw-r--r--services/surfaceflinger/Layer.cpp7
-rw-r--r--services/surfaceflinger/Layer.h1
2 files changed, 1 insertions, 7 deletions
diff --git a/services/surfaceflinger/Layer.cpp b/services/surfaceflinger/Layer.cpp
index 6c9905e7da..1b076632d8 100644
--- a/services/surfaceflinger/Layer.cpp
+++ b/services/surfaceflinger/Layer.cpp
@@ -700,11 +700,6 @@ uint32_t Layer::doTransaction(uint32_t flags) {
mNeedsFiltering = getActiveTransform(s).needsBilinearFiltering();
}
- if (mDrawingState.inputInfoChanged) {
- flags |= eInputInfoChanged;
- mDrawingState.inputInfoChanged = false;
- }
-
commitTransaction(mDrawingState);
return flags;
@@ -1986,7 +1981,7 @@ void Layer::setInputInfo(const InputWindowInfo& info) {
mDrawingState.inputInfo = info;
mDrawingState.touchableRegionCrop = extractLayerFromBinder(info.touchableRegionCropHandle);
mDrawingState.modified = true;
- mDrawingState.inputInfoChanged = true;
+ mFlinger->mInputInfoChanged = true;
setTransactionFlags(eTransactionNeeded);
}
diff --git a/services/surfaceflinger/Layer.h b/services/surfaceflinger/Layer.h
index 84d6d3f93e..b4d25053c6 100644
--- a/services/surfaceflinger/Layer.h
+++ b/services/surfaceflinger/Layer.h
@@ -186,7 +186,6 @@ public:
float cornerRadius;
int backgroundBlurRadius;
- bool inputInfoChanged;
InputWindowInfo inputInfo;
wp<Layer> touchableRegionCrop;