summaryrefslogtreecommitdiffstats
path: root/libs/gui
diff options
context:
space:
mode:
authorRachad <rachad@google.com>2014-07-29 17:53:53 -0700
committerRachad Alao <rachad@google.com>2014-08-04 21:57:22 +0000
commit7cb0d39016ff8061fe9fc2967870c145a6ffa2ac (patch)
tree6407f61644a68ed8e7df89d975621f79f748de5c /libs/gui
parent812e039aeb42c1a3c8bb8246c114f54115a335da (diff)
downloadframeworks_native-7cb0d39016ff8061fe9fc2967870c145a6ffa2ac.zip
frameworks_native-7cb0d39016ff8061fe9fc2967870c145a6ffa2ac.tar.gz
frameworks_native-7cb0d39016ff8061fe9fc2967870c145a6ffa2ac.tar.bz2
Tunneled Video Playback support
Added native_window_set_sideband_stream() method to Surface.[h|cpp] Added ConfigureVideoTunnelModeParams OMX configuration structure to HardwareAPI.h Bug: 16132368 Change-Id: I28fa1b9dbe858d93e353e0991098cad45c626bd9
Diffstat (limited to 'libs/gui')
-rw-r--r--libs/gui/Surface.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/libs/gui/Surface.cpp b/libs/gui/Surface.cpp
index 86451be..b56030e 100644
--- a/libs/gui/Surface.cpp
+++ b/libs/gui/Surface.cpp
@@ -24,6 +24,7 @@
#include <utils/Log.h>
#include <utils/Trace.h>
+#include <utils/NativeHandle.h>
#include <ui/Fence.h>
@@ -443,6 +444,9 @@ int Surface::perform(int operation, va_list args)
case NATIVE_WINDOW_API_DISCONNECT:
res = dispatchDisconnect(args);
break;
+ case NATIVE_WINDOW_SET_SIDEBAND_STREAM:
+ res = dispatchSetSidebandStream(args);
+ break;
default:
res = NAME_NOT_FOUND;
break;
@@ -533,6 +537,12 @@ int Surface::dispatchUnlockAndPost(va_list args __attribute__((unused))) {
return unlockAndPost();
}
+int Surface::dispatchSetSidebandStream(va_list args) {
+ native_handle_t* sH = va_arg(args, native_handle_t*);
+ sp<NativeHandle> sidebandHandle = NativeHandle::create(sH, false);
+ setSidebandStream(sidebandHandle);
+ return OK;
+}
int Surface::connect(int api) {
ATRACE_CALL();