From faa4c188d0aed8f055a6983156ca9e91c3f4c6be Mon Sep 17 00:00:00 2001 From: Jiwen 'Steve' Cai Date: Fri, 21 Apr 2017 18:30:50 -0700 Subject: [PATCH] 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 --- libsystem/include/system/window-deprecated.h | 6 ++++++ 1 file changed, 6 insertions(+) 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.