commit | 2060a4e647602eeeb15596a7e63716dd205b6dc1 | [log] [tgz] |
---|---|---|
author | Sally Qi <sallyqi@google.com> | Tue Jan 03 23:42:32 2023 -0800 |
committer | Sally Qi <sallyqi@google.com> | Tue Jan 10 11:11:54 2023 -0800 |
tree | a780b56f703c91e6bb09edae4001a3d528bce8c4 | |
parent | a74147236c80ebf0a76e295e84260fa961d54f1f [diff] |
Remove length check to allow empty HDR10+ blobs to HWC Bug: 212496177 Test: builds Change-Id: Iad121cd6515e826c4b57976b14e7a5eb947b1728
diff --git a/graphics/composer/2.3/utils/hal/include/composer-hal/2.3/ComposerCommandEngine.h b/graphics/composer/2.3/utils/hal/include/composer-hal/2.3/ComposerCommandEngine.h index 02f6212..f1d61f8 100644 --- a/graphics/composer/2.3/utils/hal/include/composer-hal/2.3/ComposerCommandEngine.h +++ b/graphics/composer/2.3/utils/hal/include/composer-hal/2.3/ComposerCommandEngine.h
@@ -73,9 +73,7 @@ } bool executeSetLayerPerFrameMetadataBlobs(uint16_t length) { - // must have at least one metadata blob - // of at least size 1 in queue (i.e {/*numBlobs=*/1, key, size, blob}) - if (length < 4) { + if (length == 0) { return false; }