hwc: Add vpu client
Stub implementation of VPU in HWC.
This commit passes through binder calls from HWC
to the VPU library. It also has stub prepare/draw calls
in the VPU client object which can be used to configure
VPU in the composition cycle.
Change-Id: I2606f2884e870448d29ef26e02faac92e157e2c6
diff --git a/libqservice/QService.cpp b/libqservice/QService.cpp
index a8c5dca..327888c 100644
--- a/libqservice/QService.cpp
+++ b/libqservice/QService.cpp
@@ -71,6 +71,15 @@
return result;
}
+android::status_t QService::vpuCommand(uint32_t command, uint32_t setting ) {
+ status_t result = NO_ERROR;
+ if(mClient.get()) {
+ result = mClient->notifyCallback(command, setting);
+ }
+ return result;
+}
+
+
void QService::setExtOrientation(uint32_t orientation) {
if(mClient.get()) {
mClient->notifyCallback(EXTERNAL_ORIENTATION, orientation);