From dc4d31bc876d5965bfe68b5f84db9b5149613131 Mon Sep 17 00:00:00 2001 From: Vishnu Nair Date: Thu, 17 Nov 2022 03:20:58 +0000 Subject: SF: Introduce LayerLifecycleManager LayerLifecycleManager keeps track of layer lifecyle and state changes. This breaks the existing model of using refbase and LayerHandles to keep layer's alive. Instead, the LayerLifecycleManager owns each layer and destroys them based on the layer parent state and its handle state. In addition, this class keeps track of requested layer state changes, keeping track of change flags that make the data easier to consume down the pipeline. The code is not enabled. Bug: 238781169 Test: presubmit Change-Id: I4e77efd0e689ddb513beb947d31c2fb1cd33880c --- libs/gui/include/gui/WindowInfo.h | 1 + 1 file changed, 1 insertion(+) (limited to 'libs/gui') diff --git a/libs/gui/include/gui/WindowInfo.h b/libs/gui/include/gui/WindowInfo.h index ac74c8a91f..b01a3db52d 100644 --- a/libs/gui/include/gui/WindowInfo.h +++ b/libs/gui/include/gui/WindowInfo.h @@ -272,6 +272,7 @@ public: WindowInfoHandle(const WindowInfo& other); inline const WindowInfo* getInfo() const { return &mInfo; } + inline WindowInfo* editInfo() { return &mInfo; } sp getToken() const; -- cgit v1.2.3-59-g8ed1b