summaryrefslogtreecommitdiff
path: root/libs/gui/BLASTBufferQueue.cpp
diff options
context:
space:
mode:
author Andy Hung <hunga@google.com> 2020-11-18 11:02:39 -0800
committer Andy Hung <hunga@google.com> 2021-02-09 18:08:00 -0800
commit49198cf711d05055b7f72a252205707a155b80cb (patch)
tree1043efac03b33d2f9b39988c27d7c74c90723f18 /libs/gui/BLASTBufferQueue.cpp
parentb14054af960012f0c2b9306dff6593819e864217 (diff)
Parcel: add generic readData and writeData methods.
The parameter type drives Parcel serialization for readData and writeData; this simplifies calling and allows generic code to be written for Parcels. Documented parcel data storage. Removed duplicated code. Updated existing interface to call into readData or writeData as needed. Bulk data transfer speed has been improved: For the existing interface, benchmarking shows modest 10% improvement in performance for ByteVectors to a 10x speedup for Int32Vectors by direct reading of properly packed data into the array. At this time, the generic readData and writeData methods are private, used to implement externally facing APIs. Test: atest aidl_unittests Test: atest aidl_integration_test Test: atest binderDriverInterfaceTest Test: atest binderLibTest Test: atest binderParcelBenchmark Test: atest binderParcelTest Test: atest binderStabilityTest Bug: 179072375 Change-Id: Ia2e74d4bb0c0622efdd4ec4cf93441199e96101e
Diffstat (limited to 'libs/gui/BLASTBufferQueue.cpp')
0 files changed, 0 insertions, 0 deletions