summaryrefslogtreecommitdiffstats
path: root/include/private/gui
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 /include/private/gui
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 'include/private/gui')
-rw-r--r--include/private/gui/LayerState.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/private/gui/LayerState.h b/include/private/gui/LayerState.h
index 2fa6ff9..cbe8733 100644
--- a/include/private/gui/LayerState.h
+++ b/include/private/gui/LayerState.h
@@ -39,6 +39,7 @@ struct layer_state_t {
enum {
eLayerHidden = 0x01, // SURFACE_HIDDEN in SurfaceControl.java
eLayerOpaque = 0x02, // SURFACE_OPAQUE
+ eLayerSecure = 0x80, // SECURE
};
enum {
@@ -48,10 +49,9 @@ struct layer_state_t {
eAlphaChanged = 0x00000008,
eMatrixChanged = 0x00000010,
eTransparentRegionChanged = 0x00000020,
- eVisibilityChanged = 0x00000040,
+ eFlagsChanged = 0x00000040,
eLayerStackChanged = 0x00000080,
eCropChanged = 0x00000100,
- eOpacityChanged = 0x00000200,
};
layer_state_t()