From 0e89e2b7bcb2c035e8cee77f93120e7c5617f8d2 Mon Sep 17 00:00:00 2001 From: John Reck Date: Fri, 31 Oct 2014 14:49:06 -0700 Subject: Layer changes Bug: 17208461 * Switch Layer to be VirtualLightRefBase instead of Caches' side-channel ref-counting * Include active layers in gfxinfo dump * Run gfxinfo dump on the correct thread * Dump gfxinfo on Layer creation failure Change-Id: I28d195699e2334518e215ab28c7a17355aee9678 --- libs/hwui/Layer.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'libs/hwui/Layer.h') diff --git a/libs/hwui/Layer.h b/libs/hwui/Layer.h index a8e1c2671064..64d1d1226ffb 100644 --- a/libs/hwui/Layer.h +++ b/libs/hwui/Layer.h @@ -52,7 +52,7 @@ class DeferStateStruct; /** * A layer has dimensions and is backed by an OpenGL texture or FBO. */ -class Layer { +class Layer : public VirtualLightRefBase { public: enum Type { kType_Texture, @@ -279,6 +279,12 @@ public: void flush(); void render(const OpenGLRenderer& rootRenderer); + /** + * Posts a decStrong call to the appropriate thread. + * Thread-safe. + */ + void postDecStrong(); + /** * Bounds of the layer. */ -- cgit v1.2.3-59-g8ed1b