diff options
author | Jiwen 'Steve' Cai <jwcai@google.com> | 2017-04-21 18:30:50 -0700 |
---|---|---|
committer | Jiwen 'Steve' Cai <jwcai@google.com> | 2017-05-01 16:41:26 -0700 |
commit | faa4c188d0aed8f055a6983156ca9e91c3f4c6be (patch) | |
tree | b19121f0403f2441085e5c5ee6cf1ddd80747b5f /libsystem | |
parent | e2e0d9cae2c439a5d3005f8328c2b46ed4393fb8 (diff) | |
download | core-faa4c188d0aed8f055a6983156ca9e91c3f4c6be.tar.gz |
Add NATIVE_WINDOW_CONSUMER_IS_PROTECTED enum
The enum is being introduced into libnativewindow, but back ported here
since window-deprecated.h is still being depended by other system
componenets.
Bug: 35726763
Test: videoplayer-nodrm-protected.apk and videoplayer-drm-protected.apk
both works.
Change-Id: I9298ff9b1ddd7f868e59db41e1a84e2cdd3d02b5
Diffstat (limited to 'libsystem')
-rw-r--r-- | libsystem/include/system/window-deprecated.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libsystem/include/system/window-deprecated.h b/libsystem/include/system/window-deprecated.h index 2ccfd66f0..e836aea94 100644 --- a/libsystem/include/system/window-deprecated.h +++ b/libsystem/include/system/window-deprecated.h @@ -334,6 +334,12 @@ enum { * present info, 0 if it won't. */ NATIVE_WINDOW_FRAME_TIMESTAMPS_SUPPORTS_PRESENT = 18, + + /* + * The consumer end is capable of handling protected buffers, i.e. buffer + * with GRALLOC_USAGE_PROTECTED usage bits on. + */ + NATIVE_WINDOW_CONSUMER_IS_PROTECTED = 19, }; /* Valid operations for the (*perform)() hook. |