diff options
author | Jamie Gennis <jgennis@google.com> | 2011-03-09 17:05:02 -0800 |
---|---|---|
committer | Jamie Gennis <jgennis@google.com> | 2011-03-10 16:25:48 -0800 |
commit | f72606ce3ea8cb787e5c71325f08b1898e0718d9 (patch) | |
tree | e81f8fb6a932f9660d8c65bde57fed694a18aacc /services/surfaceflinger/LayerBase.h | |
parent | 87e8ab372bd722c5c1a00ff5262acccee5dae5e5 (diff) | |
download | frameworks_base-f72606ce3ea8cb787e5c71325f08b1898e0718d9.zip frameworks_base-f72606ce3ea8cb787e5c71325f08b1898e0718d9.tar.gz frameworks_base-f72606ce3ea8cb787e5c71325f08b1898e0718d9.tar.bz2 |
SurfaceFlinger: Respect the PROTECTED gralloc bit.
This change makes SurfaceFlinger treat layers for which the active
buffer has the GRALLOC_USAGE_PROTECTED bit set as if they have the
'secure' flag set.
Change-Id: Ic60b6513a63e4bb92ec6ce9fd12fd39b4ba5f674
Bug: 4081304
Diffstat (limited to 'services/surfaceflinger/LayerBase.h')
-rw-r--r-- | services/surfaceflinger/LayerBase.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/services/surfaceflinger/LayerBase.h b/services/surfaceflinger/LayerBase.h index bfe92e6..7162e47 100644 --- a/services/surfaceflinger/LayerBase.h +++ b/services/surfaceflinger/LayerBase.h @@ -197,16 +197,10 @@ public: virtual bool isSecure() const { return false; } /** - * isProtectedByApp - true if application says this surface is protected, that - * is if it requires a hardware-protected data path to an external sink. + * isProtected - true if the layer may contain protected content in the + * GRALLOC_USAGE_PROTECTED sense. */ - virtual bool isProtectedByApp() const { return false; } - - /** - * isProtectedByDRM - true if DRM agent says this surface is protected, that - * is if it requires a hardware-protected data path to an external sink. - */ - virtual bool isProtectedByDRM() const { return false; } + virtual bool isProtected() const { return false; } /** Called from the main thread, when the surface is removed from the * draw list */ |