commit | f26ae22b305db4a7bf54e5ba72ed0128c36b5a36 | [log] [tgz] |
---|---|---|
author | Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> | Thu Jan 23 13:59:37 2025 -0800 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Thu Jan 23 13:59:37 2025 -0800 |
tree | 492ee4d8b45692fe639a814087a96c815b9ba27c | |
parent | a43655c0f6a063eaa2074ffe4ac4cc39fb13d188 [diff] | |
parent | b3ad3b24a10aad2ce65671754d941544aafd131e [diff] |
Merge "[Lut] Dup the pfd instead of releasing it in parseSetDisplayLuts." into main
diff --git a/graphics/composer/aidl/include/android/hardware/graphics/composer3/ComposerClientReader.h b/graphics/composer/aidl/include/android/hardware/graphics/composer3/ComposerClientReader.h index 2196530..da6001a 100644 --- a/graphics/composer/aidl/include/android/hardware/graphics/composer3/ComposerClientReader.h +++ b/graphics/composer/aidl/include/android/hardware/graphics/composer3/ComposerClientReader.h
@@ -270,7 +270,7 @@ for (auto& [layerId, luts] : displayLuts.layerLuts) { if (luts.pfd.get() >= 0) { data.layerLuts.push_back( - {layerId, Luts{ndk::ScopedFileDescriptor(luts.pfd.release()), luts.offsets, + {layerId, Luts{ndk::ScopedFileDescriptor(dup(luts.pfd.get())), luts.offsets, luts.lutProperties}}); } }