summaryrefslogtreecommitdiff
path: root/opengl/libagl/texture.cpp
diff options
context:
space:
mode:
author Jiwen 'Steve' Cai <jwcai@google.com> 2017-09-01 10:19:47 -0700
committer Jiwen 'Steve' Cai <jwcai@google.com> 2017-10-24 16:32:30 -0700
commit9665d919506cb6e8c5df33c867de9831e5b57c28 (patch)
treed158462087205d31e83fe7ecda75cd342e35ed74 /opengl/libagl/texture.cpp
parentfabd2f5c8f31b352a87c6d22228a6c6b5614522a (diff)
Add buffer transport benchmark
1/ This benchmark supports both Binder-based BufferQueue and PDX-based BufferHub. 2/ On the producer side, it uses the same ANativeWindow API to gain buffer and post buffer for both backends. 3/ It supports multiple concurrent producer threads to minic buffers comming from different applications. 4/ For Binder backend, we use a dedicated process to run a Binder service, which acquires and releases buffers via BufferItemConsumer. 5/ For BufferHub backend, we use a SchedFIFO thread to epoll on multiple BufferHub ConsumerQueue(s). 6/ Four operations are traced via "ATRACE_TAG_ALWAYS" tag: GainBuffer, PostBuffer, AcquireBuffer, ReleaseBuffer. We use ATRACE_TAG_ALWAYS tag so that user can disable all other trace tags (i.e. gfx, video) to only trace events from this benchmark without being impacted by the systrace overhead. But note that the systrace is only enabled if specifying "--trace" in the commandline. Bug: 66921451 Test: buffer_transport_benchmark Change-Id: I8d1b70364e504c48658624caf4d0508a9508e3b0
Diffstat (limited to 'opengl/libagl/texture.cpp')
0 files changed, 0 insertions, 0 deletions