summaryrefslogtreecommitdiffstats
path: root/include/private
diff options
context:
space:
mode:
authorAndy McFadden <fadden@android.com>2014-01-29 17:17:11 -0800
committerAndy McFadden <fadden@android.com>2014-01-29 17:36:49 -0800
commit4125a4ffaf374ca9c0773f256998557d3325343e (patch)
tree26978b87b53a5a9507257606ff65eb95c4a966ac /include/private
parenta9d5701b034ed2d9771b3f0943e1add00741d7cd (diff)
downloadframeworks_native-4125a4ffaf374ca9c0773f256998557d3325343e.zip
frameworks_native-4125a4ffaf374ca9c0773f256998557d3325343e.tar.gz
frameworks_native-4125a4ffaf374ca9c0773f256998557d3325343e.tar.bz2
Allow "opaque" flag to be updated
Moves the "opaque layer" from Layer to Layer::State. This allows it to be updated as part of a transaction. Bug 12387406 Change-Id: I0a114ce6adf77cd12fb08f96e0691b76c475768d
Diffstat (limited to 'include/private')
-rw-r--r--include/private/gui/LayerState.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/private/gui/LayerState.h b/include/private/gui/LayerState.h
index bf4bf03..5584fb1 100644
--- a/include/private/gui/LayerState.h
+++ b/include/private/gui/LayerState.h
@@ -30,11 +30,15 @@ namespace android {
class Parcel;
class ISurfaceComposerClient;
+/*
+ * Used to communicate layer information between SurfaceFlinger and its clients.
+ */
struct layer_state_t {
enum {
- eLayerHidden = 0x01,
+ eLayerHidden = 0x01, // SURFACE_HIDDEN in SurfaceControl.java
+ eLayerOpaque = 0x02, // SURFACE_OPAQUE
};
enum {
@@ -47,6 +51,7 @@ struct layer_state_t {
eVisibilityChanged = 0x00000040,
eLayerStackChanged = 0x00000080,
eCropChanged = 0x00000100,
+ eOpacityChanged = 0x00000200,
};
layer_state_t()