summaryrefslogtreecommitdiff
path: root/libs/input/SpriteController.h
diff options
context:
space:
mode:
author Arthur Hung <arthurhung@google.com> 2022-05-30 12:54:27 +0000
committer Arthur Hung <arthurhung@google.com> 2022-06-24 15:58:15 +0000
commit2b5cd1743f5701d60c90c85dc710fc771e90c5e8 (patch)
treed727d139c9cfbb36026101c7cca69bddd9c5feb1 /libs/input/SpriteController.h
parent7b0313fd4d34293683322f5456335986040026ff (diff)
Reduce setInputWindows call (2/2)
Assign the parent layer when creating a new surface and reparent it if only if it changed to another display. Test: enable setInputWindow log, connect a mouse device and move. Bug: 133780957 Change-Id: Ia244b0af483b48a9c667e18566440076ce29c223
Diffstat (limited to 'libs/input/SpriteController.h')
-rw-r--r--libs/input/SpriteController.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/input/SpriteController.h b/libs/input/SpriteController.h
index 2e9cb9685c46..1f113c045360 100644
--- a/libs/input/SpriteController.h
+++ b/libs/input/SpriteController.h
@@ -265,7 +265,7 @@ private:
void doDisposeSurfaces();
void ensureSurfaceComposerClient();
- sp<SurfaceControl> obtainSurface(int32_t width, int32_t height);
+ sp<SurfaceControl> obtainSurface(int32_t width, int32_t height, int32_t displayId);
};
} // namespace android