@@ -79,38 +79,23 @@ public final class Display {
7979 public static final int DEFAULT_DISPLAY = 0 ;
8080
8181 /**
82- * Display flag: Indicates that the display supports secure video output.
82+ * Display flag: Indicates that the display supports compositing content
83+ * that is stored in protected graphics buffers.
8384 * <p>
84- * This flag is used to indicate that the display supports content protection
85- * mechanisms for secure video output at the display interface, such as HDCP.
86- * These mechanisms may be used to protect secure content as it leaves the device.
85+ * Secure (DRM) video decoders may allocate protected graphics buffers to request that
86+ * a hardware-protected path be provided between the video decoder and the external
87+ * display sink. If a hardware-protected path is not available, then content stored
88+ * in protected graphics buffers may not be composited.
8789 * </p><p>
88- * While mirroring content to multiple displays, it can happen that certain
89- * display devices support secure video output while other display devices do not.
90- * The secure content will be shown only on the display devices that support
91- * secure video output and will be blanked on other display devices that do
92- * not support secure video output.
93- * </p><p>
94- * This flag mainly applies to external display devices such as HDMI or
95- * Wifi display. Built-in display devices are usually considered secure.
96- * </p>
97- *
98- * @hide pending review
99- */
100- public static final int FLAG_SUPPORTS_SECURE_VIDEO_OUTPUT = 1 << 0 ;
101-
102- /**
103- * Display flag: Indicates that the display supports secure in-memory video buffers.
104- * <p>
105- * This flag is used to indicate that the display supports content protection
106- * mechanisms for in-memory video buffers, such as secure memory areas.
107- * These mechanisms may be used to protect secure video buffers in memory from
108- * the video decoder to the display compositor and the video interface.
90+ * If this flag is not set, then the display device does not support compositing
91+ * protected buffers; the user may see a blank region on the screen instead of
92+ * the protected content. An application can use this flag as a hint that it should
93+ * select an alternate content stream or adopt a different strategy for decoding
94+ * content that does not rely on protected buffers so as to ensure that the user
95+ * can view the content on the display as expected.
10996 * </p>
110- *
111- * @hide pending review
11297 */
113- public static final int FLAG_SUPPORTS_SECURE_VIDEO_BUFFERS = 1 << 1 ;
98+ public static final int FLAG_SUPPORTS_PROTECTED_BUFFERS = 1 << 0 ;
11499
115100 /**
116101 * Internal method to create a display.
@@ -196,7 +181,7 @@ public int getLayerStack() {
196181 *
197182 * @return The display flags.
198183 *
199- * @hide pending review
184+ * @see #FLAG_SUPPORTS_PROTECTED_BUFFERS
200185 */
201186 public int getFlags () {
202187 synchronized (this ) {
0 commit comments