diff options
| author | 2024-05-07 21:15:44 +0000 | |
|---|---|---|
| committer | 2024-05-07 21:15:44 +0000 | |
| commit | ec44865a5cb6194f4d2b5dffd0b6d3e77da69388 (patch) | |
| tree | 1ab44492afdc48b4ae47a7ff15e58bf807e95eec /libs/input/TouchSpotController.cpp | |
| parent | d955927ba0f4794defab38eb179affc802f40c11 (diff) | |
| parent | 80fd68a08911b984fcfee6ad1960f9ff3bb6274d (diff) | |
Merge "Hide touch indicators on mirrored displays if a secure window is present" into main
Diffstat (limited to 'libs/input/TouchSpotController.cpp')
| -rw-r--r-- | libs/input/TouchSpotController.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libs/input/TouchSpotController.cpp b/libs/input/TouchSpotController.cpp index 99952aa14904..530d54129791 100644 --- a/libs/input/TouchSpotController.cpp +++ b/libs/input/TouchSpotController.cpp @@ -40,12 +40,13 @@ namespace android { // --- Spot --- void TouchSpotController::Spot::updateSprite(const SpriteIcon* icon, float newX, float newY, - int32_t displayId) { + int32_t displayId, bool skipScreenshot) { sprite->setLayer(Sprite::BASE_LAYER_SPOT + id); sprite->setAlpha(alpha); sprite->setTransformationMatrix(SpriteTransformationMatrix(scale, 0.0f, 0.0f, scale)); sprite->setPosition(newX, newY); sprite->setDisplayId(displayId); + sprite->setSkipScreenshot(skipScreenshot); x = newX; y = newY; @@ -84,7 +85,7 @@ TouchSpotController::~TouchSpotController() { } void TouchSpotController::setSpots(const PointerCoords* spotCoords, const uint32_t* spotIdToIndex, - BitSet32 spotIdBits) { + BitSet32 spotIdBits, bool skipScreenshot) { #if DEBUG_SPOT_UPDATES ALOGD("setSpots: idBits=%08x", spotIdBits.value); for (BitSet32 idBits(spotIdBits); !idBits.isEmpty();) { @@ -116,7 +117,7 @@ void TouchSpotController::setSpots(const PointerCoords* spotCoords, const uint32 spot = createAndAddSpotLocked(id, mLocked.displaySpots); } - spot->updateSprite(&icon, x, y, mDisplayId); + spot->updateSprite(&icon, x, y, mDisplayId, skipScreenshot); } for (Spot* spot : mLocked.displaySpots) { |