diff options
| author | 2014-09-10 13:04:31 -0700 | |
|---|---|---|
| committer | 2014-09-10 16:10:24 -0700 | |
| commit | bfd1cd620991ac2fa9202fdce6c00ec47d071935 (patch) | |
| tree | cc0460e5066d0a765610fb5eb4a3e30ef9bc28a5 /libs/hwui/Layer.h | |
| parent | fc81bfe3fb43296ca7040b8f259e1cbec50898ca (diff) | |
Additional layer logging
bug:17208461
Track layer's last known state.
Change-Id: Ic1799191f5839a1d6cc56f598f2ac2671dc27a6f
Diffstat (limited to 'libs/hwui/Layer.h')
| -rw-r--r-- | libs/hwui/Layer.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libs/hwui/Layer.h b/libs/hwui/Layer.h index 36a4ed11d2e8..a8e1c2671064 100644 --- a/libs/hwui/Layer.h +++ b/libs/hwui/Layer.h @@ -59,6 +59,17 @@ public: kType_DisplayList, }; + // layer lifecycle, controlled from outside + enum State { + kState_Uncached = 0, + kState_InCache = 1, + kState_FailedToCache = 2, + kState_RemovedFromCache = 3, + kState_DeletedFromCache = 4, + kState_InGarbageList = 5, + }; + State state; // public for logging/debugging purposes + Layer(Type type, RenderState& renderState, const uint32_t layerWidth, const uint32_t layerHeight); ~Layer(); |