diff options
author | 2016-12-20 14:47:45 -0800 | |
---|---|---|
committer | 2016-12-21 11:09:53 -0800 | |
commit | c0b1577538390f75de137e030bc22ff415e07683 (patch) | |
tree | a1f76a3c4022a6b9b30c935ffef2c52d0bfc9154 /vulkan/libvulkan/api.cpp | |
parent | 3e26b1363ff8b39a472fc2d4fe9ee59ee818b977 (diff) |
GpuService: fix shellCommand result protocol
The "cmd" shell command at some point separated transport vs. command
results: transport errors should be returned as the Binder transaction
result, but in the absence of a transport error, the command result
(success or failure) should be sent to a IResultReceiver object
provided as a command parameter.
GpuService wasn't doing this, returning the command result from the
Binder transaction and never sending anything to the IResultReceiver.
This caused cmd to wait forever for an IResultReceiver result to
become available. This change properly handles transport errors vs.
command results.
Test: for cmd in "" help vkjson foo; do adb shell cmd gpu $cmd; done
Change-Id: Id2f78593a27d35a88ffa96182de0ef75c3e33599
Diffstat (limited to 'vulkan/libvulkan/api.cpp')
0 files changed, 0 insertions, 0 deletions