diff options
author | Wei Jia <wjia@google.com> | 2015-09-28 11:32:23 -0700 |
---|---|---|
committer | Wei Jia <wjia@google.com> | 2015-10-07 13:53:25 -0700 |
commit | 2482595baadd16f20d3992c8c9d6a14061836872 (patch) | |
tree | 1b2d060855dc645f847ff2143e359166005f829a /include | |
parent | 07395f4cd72cf29d1de2864cde42876db4e54411 (diff) | |
download | frameworks_av-2482595baadd16f20d3992c8c9d6a14061836872.zip frameworks_av-2482595baadd16f20d3992c8c9d6a14061836872.tar.gz frameworks_av-2482595baadd16f20d3992c8c9d6a14061836872.tar.bz2 |
DO NOT MERGE - OMX: allow only secure codec to remotely call allocateBuffer.
Bug: 24310423
Change-Id: Iebcfc58b447f925ec2134898060af2ef227266a3
(cherry picked from commit 8dde7269a5356503d2b283234b6cb46d0c3f214e)
Diffstat (limited to 'include')
-rw-r--r-- | include/media/IOMX.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/media/IOMX.h b/include/media/IOMX.h index 627f23b..595e51f 100644 --- a/include/media/IOMX.h +++ b/include/media/IOMX.h @@ -207,6 +207,12 @@ public: virtual status_t onTransact( uint32_t code, const Parcel &data, Parcel *reply, uint32_t flags = 0); + +protected: + // check if the codec is secure. + virtual bool isSecure(IOMX::node_id node) { + return false; + } }; class BnOMXObserver : public BnInterface<IOMXObserver> { |