summaryrefslogtreecommitdiffstats
path: root/services/surfaceflinger/SurfaceFlinger.cpp
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2012-07-24 21:41:09 -0700
committerMathias Agopian <mathias@google.com>2012-07-24 21:42:27 -0700
commit8785578391eacd4192333d7b0ce3afedd7d163e6 (patch)
tree62249d4b8556b12eede54e09c9b5a5f34f9e52ec /services/surfaceflinger/SurfaceFlinger.cpp
parent8b33f032327f8de0dcc0e6d0d43ed80f834b51f6 (diff)
downloadframeworks_native-8785578391eacd4192333d7b0ce3afedd7d163e6.zip
frameworks_native-8785578391eacd4192333d7b0ce3afedd7d163e6.tar.gz
frameworks_native-8785578391eacd4192333d7b0ce3afedd7d163e6.tar.bz2
add a layerStack attribute to Layers.
this attribute can be set through a regular transaction using SurfaceComposerClient (just like any other attribute, eg: position or size) Change-Id: I701a47c677ea6442ca713728a93335328cd2b172
Diffstat (limited to 'services/surfaceflinger/SurfaceFlinger.cpp')
-rw-r--r--services/surfaceflinger/SurfaceFlinger.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp
index 8da2543..b70c720 100644
--- a/services/surfaceflinger/SurfaceFlinger.cpp
+++ b/services/surfaceflinger/SurfaceFlinger.cpp
@@ -1572,6 +1572,10 @@ uint32_t SurfaceFlinger::setClientStateLocked(
if (layer->setCrop(s.crop))
flags |= eTraversalNeeded;
}
+ if (what & eLayerStackChanged) {
+ if (layer->setLayerStack(s.layerStack))
+ flags |= eTraversalNeeded;
+ }
}
return flags;
}