summaryrefslogtreecommitdiff
path: root/tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp
diff options
context:
space:
mode:
authorNataniel Borges <natanieljr@google.com>2019-01-25 16:54:51 -0800
committerNataniel Borges <natanieljr@google.com>2019-01-28 22:47:03 +0000
commit5f1cca657f412ebc145e5f03fae888f586272c94 (patch)
tree60046e1ebdf0548bfe8030ccf71f5cd59731bdf5 /tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp
parent98d92aa5d3f13124b364b2e58de2df0283b2c1d0 (diff)
Get ProtoOutputStream size without compressing it
The current implementation of the ProtoOutputStream compresses the buffer in order to return its correct size. For some use cases the compression is too expensive and it is more useful to have a faster but overestimated size to a precise but slower one. This implementation adds a `getRawSize` method which returns the buffer size without compressing it. If the buffer has already been compressed the returned size is the same as the one from the `getSize`. If the buffer is not yet compressed the size may diverge. This implementation will be used to support a ring buffer for window transitions on the Window Manager. Bug: 123535780 Test: Check the getSize method from the EncodedBuffer and the getRawSize from the ProtoOutputStream. Change-Id: Ied24742a14b76980afdf6d6d22d67ade15ba7aad
Diffstat (limited to 'tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp')
0 files changed, 0 insertions, 0 deletions