summaryrefslogtreecommitdiff
path: root/libs/ultrahdr/jpegencoderhelper.cpp
diff options
context:
space:
mode:
author Vishnu Nair <vishnun@google.com> 2023-05-10 13:55:22 -0700
committer Vishnu Nair <vishnun@google.com> 2023-05-10 20:25:48 -0700
commit802ac4f6e84a830077963db7299ae9184b56e12e (patch)
treebd10deaf35cb7c425004f652f86748a706fde77d /libs/ultrahdr/jpegencoderhelper.cpp
parent50fe0d960d1df5d6d99e6808d0cb941f2bc7f772 (diff)
[sf] avoid traversals for cursor updates and buffer udpates
In U, we have a unified way to traverse the layer hierarchy from both new FrontEnd and legacy logic to generate the snapshots to provide to CE. We update CE twice, once to draw the cursor and once for the remaining layers. In T we relied on the previous frame's composition state to update cursor state. This extra traversal increases the cpu usage for buffer updates. Fix this by keeping track of the previous composition state and expand on this to avoid all traversals when there are only buffer updates. Bug: 278634536 Test: simple perf and check the instruction count between T and U Change-Id: I26989bf42aa00650ee97c3c60e7f34171c385c5c
Diffstat (limited to 'libs/ultrahdr/jpegencoderhelper.cpp')
0 files changed, 0 insertions, 0 deletions