diff options
author | Glenn Kasten <gkasten@google.com> | 2011-01-19 15:27:27 -0800 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2011-01-28 08:04:00 -0800 |
commit | d6f5bde96b2fe82bc7e5d4e64266d585108c4648 (patch) | |
tree | 323f31caa5ff13610218cfaca6ee69a0a2588227 /include | |
parent | bc2e3fe480f1c670e483eaa9b8092902dd78ddf7 (diff) | |
download | frameworks_base-d6f5bde96b2fe82bc7e5d4e64266d585108c4648.zip frameworks_base-d6f5bde96b2fe82bc7e5d4e64266d585108c4648.tar.gz frameworks_base-d6f5bde96b2fe82bc7e5d4e64266d585108c4648.tar.bz2 |
Protected surface API
To be used by DRM framework, implemented by display HAL
Change-Id: I054a07a94f4d5dbe792f3a597e2e49a100d90eb2
Diffstat (limited to 'include')
-rw-r--r-- | include/surfaceflinger/ISurfaceComposer.h | 2 | ||||
-rw-r--r-- | include/ui/GraphicBuffer.h | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/include/surfaceflinger/ISurfaceComposer.h b/include/surfaceflinger/ISurfaceComposer.h index 56ed3a4..361e7dc 100644 --- a/include/surfaceflinger/ISurfaceComposer.h +++ b/include/surfaceflinger/ISurfaceComposer.h @@ -44,6 +44,8 @@ public: eSecure = 0x00000080, eNonPremultiplied = 0x00000100, eOpaque = 0x00000400, + eProtectedByApp = 0x00000800, + eProtectedByDRM = 0x00001000, eFXSurfaceNormal = 0x00000000, eFXSurfaceBlur = 0x00010000, diff --git a/include/ui/GraphicBuffer.h b/include/ui/GraphicBuffer.h index 8b256f4..02d6f8f 100644 --- a/include/ui/GraphicBuffer.h +++ b/include/ui/GraphicBuffer.h @@ -54,9 +54,11 @@ public: USAGE_SW_WRITE_RARELY = GRALLOC_USAGE_SW_WRITE_RARELY, USAGE_SW_WRITE_OFTEN = GRALLOC_USAGE_SW_WRITE_OFTEN, USAGE_SW_WRITE_MASK = GRALLOC_USAGE_SW_WRITE_MASK, - + USAGE_SOFTWARE_MASK = USAGE_SW_READ_MASK|USAGE_SW_WRITE_MASK, - + + USAGE_PROTECTED = GRALLOC_USAGE_PROTECTED, + USAGE_HW_TEXTURE = GRALLOC_USAGE_HW_TEXTURE, USAGE_HW_RENDER = GRALLOC_USAGE_HW_RENDER, USAGE_HW_2D = GRALLOC_USAGE_HW_2D, |