summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRachad <rachad@google.com>2014-07-29 18:03:21 -0700
committerRachad Alao <rachad@google.com>2014-08-04 21:57:37 +0000
commitd6d4c61a93e8ad1438c272e7540acea0a99770a2 (patch)
treec3226abc5125be4f81a9105051c9380cc964f3bf /include
parent3679d5f49a1e3caf69fffd1afa2d6139a0bfbb17 (diff)
downloadsystem_core-d6d4c61a93e8ad1438c272e7540acea0a99770a2.zip
system_core-d6d4c61a93e8ad1438c272e7540acea0a99770a2.tar.gz
system_core-d6d4c61a93e8ad1438c272e7540acea0a99770a2.tar.bz2
Tunneled Video Playback support
Added native_window_set_sideband_stream() method to window.h Bug: 16132368 Change-Id: Iff5770cb2e2d27176bee37edacaed7b783bbce2a
Diffstat (limited to 'include')
-rw-r--r--include/system/window.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/system/window.h b/include/system/window.h
index 60ed165..bf93b79 100644
--- a/include/system/window.h
+++ b/include/system/window.h
@@ -293,6 +293,7 @@ enum {
NATIVE_WINDOW_SET_BUFFERS_USER_DIMENSIONS = 15, /* private */
NATIVE_WINDOW_SET_POST_TRANSFORM_CROP = 16, /* private */
NATIVE_WINDOW_SET_BUFFERS_STICKY_TRANSFORM = 17,/* private */
+ NATIVE_WINDOW_SET_SIDEBAND_STREAM = 18,
};
/* parameter for NATIVE_WINDOW_[API_][DIS]CONNECT */
@@ -893,6 +894,17 @@ static inline int native_window_dequeue_buffer_and_wait(ANativeWindow *anw,
return anw->dequeueBuffer_DEPRECATED(anw, anb);
}
+/*
+ * native_window_set_sideband_stream(..., native_handle_t*)
+ * Attach a sideband buffer stream to a native window.
+ */
+static inline int native_window_set_sideband_stream(
+ struct ANativeWindow* window,
+ native_handle_t* sidebandHandle)
+{
+ return window->perform(window, NATIVE_WINDOW_SET_SIDEBAND_STREAM,
+ sidebandHandle);
+}
__END_DECLS