diff options
| author | 2024-10-04 17:04:02 +0000 | |
|---|---|---|
| committer | 2024-10-04 17:04:02 +0000 | |
| commit | 614024b3d811c5cd10debfa8b014b295302d6c5c (patch) | |
| tree | 1928727928b51e5d3d72aab0d377840aced97ecd /libs/gui/SurfaceComposerClient.cpp | |
| parent | aa2d404b3150afa89bfe8f911ac980d32f25f4b2 (diff) | |
| parent | a9123c8b69422dfff377e3b07746dec48e91dc60 (diff) | |
Merge "Support floating point values for layer crop" into main
Diffstat (limited to 'libs/gui/SurfaceComposerClient.cpp')
| -rw-r--r-- | libs/gui/SurfaceComposerClient.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/gui/SurfaceComposerClient.cpp b/libs/gui/SurfaceComposerClient.cpp index b976d814b6..6bb80dca32 100644 --- a/libs/gui/SurfaceComposerClient.cpp +++ b/libs/gui/SurfaceComposerClient.cpp @@ -1645,6 +1645,11 @@ SurfaceComposerClient::Transaction& SurfaceComposerClient::Transaction::setMatri SurfaceComposerClient::Transaction& SurfaceComposerClient::Transaction::setCrop( const sp<SurfaceControl>& sc, const Rect& crop) { + return setCrop(sc, crop.toFloatRect()); +} + +SurfaceComposerClient::Transaction& SurfaceComposerClient::Transaction::setCrop( + const sp<SurfaceControl>& sc, const FloatRect& crop) { layer_state_t* s = getLayerState(sc); if (!s) { mStatus = BAD_INDEX; |