Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit faa4c188 authored by Jiwen 'Steve' Cai's avatar Jiwen 'Steve' Cai
Browse files

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
parent e2e0d9ca
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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.