Fix bug where buffer slots to clear were not set correctly

Bug: 276417624
Bug: 258196272
Test: VtsHalGraphicsComposer3_TargetTest
Change-Id: Ie077f14140d71f88a497c4a8995d73dd07c31598
This commit is contained in:
Brian Lindahl 2023-03-31 07:31:51 -06:00
parent 25e0d09c76
commit c85693d02d

View file

@ -144,10 +144,8 @@ class ComposerClientWriter final {
void setLayerBufferSlotsToClear(int64_t display, int64_t layer,
const std::vector<uint32_t>& slotsToClear) {
LayerCommand& layerCommand = getLayerCommand(display, layer);
for (auto slot : slotsToClear) {
layerCommand.bufferSlotsToClear.emplace(static_cast<int32_t>(slot));
}
getLayerCommand(display, layer)
.bufferSlotsToClear.emplace(slotsToClear.begin(), slotsToClear.end());
}
void setLayerSurfaceDamage(int64_t display, int64_t layer, const std::vector<Rect>& damage) {