commit | 6814c443ebe0305d47c8299c3945750b6c297a7b | [log] [tgz] |
---|---|---|
author | Sally Qi <sallyqi@google.com> | Thu Mar 30 23:41:29 2023 -0700 |
committer | Sally Qi <sallyqi@google.com> | Thu Mar 30 23:41:29 2023 -0700 |
tree | 10e00cd478575bd23dae18b71a9664149f9073c5 | |
parent | 8b0f27d7d01d62d9adc4cd958969144caa9aefea [diff] |
Fix HDR sluggish issue. - skip writing blobs if empty packet is sent for per-frame metadata. Bug: 274050717 Test: play HDR video on YouTube Change-Id: If8716613136c70a5adee29074cc2e9d35a500264
diff --git a/graphics/composer/2.3/utils/command-buffer/include/composer-command-buffer/2.3/ComposerCommandBuffer.h b/graphics/composer/2.3/utils/command-buffer/include/composer-command-buffer/2.3/ComposerCommandBuffer.h index afc22d8..5e9a287 100644 --- a/graphics/composer/2.3/utils/command-buffer/include/composer-command-buffer/2.3/ComposerCommandBuffer.h +++ b/graphics/composer/2.3/utils/command-buffer/include/composer-command-buffer/2.3/ComposerCommandBuffer.h
@@ -87,6 +87,10 @@ return; } + if (metadata.size() == 0) { + return; + } + // space for numElements commandLength += 1;