diff options
author | Dan Stoza <stoza@google.com> | 2015-06-18 14:58:39 -0700 |
---|---|---|
committer | Dan Stoza <stoza@google.com> | 2015-06-18 15:11:20 -0700 |
commit | 231160866738f6ed2175701f300fed1a8e8e02b0 (patch) | |
tree | 134149319b4cdbc1c4f7d299537298942db50a6a /libs | |
parent | 8f37aa5011bf5d8c0a67126b92e3b435ffd4dca0 (diff) | |
download | frameworks_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 'libs')
-rw-r--r-- | libs/gui/SurfaceComposerClient.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/libs/gui/SurfaceComposerClient.cpp b/libs/gui/SurfaceComposerClient.cpp index 707a321..6ad47d8 100644 --- a/libs/gui/SurfaceComposerClient.cpp +++ b/libs/gui/SurfaceComposerClient.cpp @@ -310,11 +310,10 @@ status_t Composer::setFlags(const sp<SurfaceComposerClient>& client, layer_state_t* s = getLayerStateLocked(client, id); if (!s) return BAD_INDEX; - if (mask & layer_state_t::eLayerOpaque) { - s->what |= layer_state_t::eOpacityChanged; - } - if (mask & layer_state_t::eLayerHidden) { - s->what |= layer_state_t::eVisibilityChanged; + if (mask & layer_state_t::eLayerOpaque || + mask & layer_state_t::eLayerHidden || + mask & layer_state_t::eLayerSecure) { + s->what |= layer_state_t::eFlagsChanged; } s->flags &= ~mask; s->flags |= (flags & mask); |