summaryrefslogtreecommitdiffstats
path: root/services/surfaceflinger/Layer.h
diff options
context:
space:
mode:
authorDan Stoza <stoza@google.com>2015-06-18 14:58:39 -0700
committerDan Stoza <stoza@google.com>2015-06-18 15:11:20 -0700
commit231160866738f6ed2175701f300fed1a8e8e02b0 (patch)
tree134149319b4cdbc1c4f7d299537298942db50a6a /services/surfaceflinger/Layer.h
parent8f37aa5011bf5d8c0a67126b92e3b435ffd4dca0 (diff)
downloadframeworks_native-231160866738f6ed2175701f300fed1a8e8e02b0.zip
frameworks_native-231160866738f6ed2175701f300fed1a8e8e02b0.tar.gz
frameworks_native-231160866738f6ed2175701f300fed1a8e8e02b0.tar.bz2
libgui/SF: Propagate SECURE Layer flag changes
This allows changes to the SECURE flag to propagate down to Layers in SurfaceFlinger so that WindowManager can change it on the fly in response to device policy updates. Bug: 20934462 Change-Id: I558f6d22c6273be373f1f480365e42536af18a33
Diffstat (limited to 'services/surfaceflinger/Layer.h')
-rw-r--r--services/surfaceflinger/Layer.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/services/surfaceflinger/Layer.h b/services/surfaceflinger/Layer.h
index 4e222b7..c1e5e9f 100644
--- a/services/surfaceflinger/Layer.h
+++ b/services/surfaceflinger/Layer.h
@@ -174,7 +174,7 @@ public:
* isSecure - true if this surface is secure, that is if it prevents
* screenshots or VNC servers.
*/
- virtual bool isSecure() const { return mSecure; }
+ virtual bool isSecure() const;
/*
* isProtected - true if the layer may contain protected content in the
@@ -402,7 +402,6 @@ private:
mutable Texture mTexture;
// page-flip thread (currently main thread)
- bool mSecure; // no screenshots
bool mProtectedByApp; // application requires protected path to external sink
// protected by mLock