diff options
Diffstat (limited to 'x86/include/frameworks/native/libs/gui/include/gui/LayerState.h')
-rw-r--r-- | x86/include/frameworks/native/libs/gui/include/gui/LayerState.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/x86/include/frameworks/native/libs/gui/include/gui/LayerState.h b/x86/include/frameworks/native/libs/gui/include/gui/LayerState.h index 3e57ff6..4ffd324 100644 --- a/x86/include/frameworks/native/libs/gui/include/gui/LayerState.h +++ b/x86/include/frameworks/native/libs/gui/include/gui/LayerState.h @@ -62,6 +62,12 @@ struct client_cache_t { * Used to communicate layer information between SurfaceFlinger and its clients. */ struct layer_state_t { + enum Permission { + ACCESS_SURFACE_FLINGER = 0x1, + ROTATE_SURFACE_FLINGER = 0x2, + INTERNAL_SYSTEM_WINDOW = 0x4, + }; + enum { eLayerHidden = 0x01, // SURFACE_HIDDEN in SurfaceControl.java eLayerOpaque = 0x02, // SURFACE_OPAQUE @@ -128,6 +134,7 @@ struct layer_state_t { status_t read(const Parcel& input); bool hasBufferChanges() const; bool hasValidBuffer() const; + void sanitize(int32_t permissions); struct matrix22_t { float dsdx{0}; |