[core/nvnflinger] Rewrite GetBufferHistory #528
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "change-GetBufferHistory"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This rewrite should improve performance with the buffer history by changing the complexity level to O(1).
Replace std::vector with std::array to ensure that elements are allocated on the stack rather than on the free store.
Avoid expensive resizing at runtime.
Adjust buffer states at the right locations.
Tightly pack the BufferHistoryInfo struct to ensure that it only occupies 28 bytes.
Merging directly as these changes were already approved in #484.
Confirmed all headers are good. Merging.