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
This commit is contained in:
Jiwen 'Steve' Cai 2017-04-21 18:30:50 -07:00
parent e2e0d9cae2
commit faa4c188d0

View file

@ -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.