diff options
author | 2024-10-07 16:38:03 +0000 | |
---|---|---|
committer | 2024-10-07 16:38:03 +0000 | |
commit | 8ea4421c67405c42e670d219e097d290b77a4416 (patch) | |
tree | 4d39809c938d181d1c80af05b2ae44c2bcfe700a /libs/gui/SurfaceComposerClient.cpp | |
parent | 7aa34f054696cf56fcf1b39e1e4a72d484fb1c25 (diff) | |
parent | 95f669a30a74fa519dc9dc760a099d977ebee567 (diff) |
Merge "[Lut HAL backend] implementation" into main
Diffstat (limited to 'libs/gui/SurfaceComposerClient.cpp')
-rw-r--r-- | libs/gui/SurfaceComposerClient.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libs/gui/SurfaceComposerClient.cpp b/libs/gui/SurfaceComposerClient.cpp index 6bb80dca32..063aabbdef 100644 --- a/libs/gui/SurfaceComposerClient.cpp +++ b/libs/gui/SurfaceComposerClient.cpp @@ -1939,6 +1939,20 @@ SurfaceComposerClient::Transaction& SurfaceComposerClient::Transaction::setDesir return *this; } +SurfaceComposerClient::Transaction& SurfaceComposerClient::Transaction::setLuts( + const sp<SurfaceControl>& sc, const base::unique_fd& /*lutFd*/, + const std::vector<int32_t>& /*offsets*/, const std::vector<int32_t>& /*dimensions*/, + const std::vector<int32_t>& /*sizes*/, const std::vector<int32_t>& /*samplingKeys*/) { + layer_state_t* s = getLayerState(sc); + if (!s) { + mStatus = BAD_INDEX; + return *this; + } + // TODO (b/329472856): update layer_state_t for lut(s) + registerSurfaceControlForCallback(sc); + return *this; +} + SurfaceComposerClient::Transaction& SurfaceComposerClient::Transaction::setCachingHint( const sp<SurfaceControl>& sc, gui::CachingHint cachingHint) { layer_state_t* s = getLayerState(sc); |