From f72606ce3ea8cb787e5c71325f08b1898e0718d9 Mon Sep 17 00:00:00 2001 From: Jamie Gennis Date: Wed, 9 Mar 2011 17:05:02 -0800 Subject: 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 --- services/surfaceflinger/Layer.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'services/surfaceflinger/Layer.h') diff --git a/services/surfaceflinger/Layer.h b/services/surfaceflinger/Layer.h index bccc900..128f93d 100644 --- a/services/surfaceflinger/Layer.h +++ b/services/surfaceflinger/Layer.h @@ -80,8 +80,7 @@ public: virtual bool needsDithering() const { return mNeedsDithering; } virtual bool needsFiltering() const; virtual bool isSecure() const { return mSecure; } - virtual bool isProtectedByApp() const { return mProtectedByApp; } - virtual bool isProtectedByDRM() const { return mProtectedByDRM; } + virtual bool isProtected() const; virtual sp createSurface() const; virtual status_t ditch(); virtual void onRemoved(); @@ -222,7 +221,6 @@ private: // page-flip thread (currently main thread) bool mSecure; // no screenshots bool mProtectedByApp; // application requires protected path to external sink - bool mProtectedByDRM; // DRM agent requires protected path to external sink Region mPostedDirtyRegion; // page-flip thread and transaction thread (currently main thread) -- cgit v1.1