diff options
author | John Reck <jreck@google.com> | 2014-10-31 14:49:06 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2014-10-31 15:30:10 -0700 |
commit | 0e89e2b7bcb2c035e8cee77f93120e7c5617f8d2 (patch) | |
tree | 8fcd1f768f08fbeb2cd13425a2bf15b7670428f2 /libs/hwui/Layer.h | |
parent | 141823ec6313d9545b8354ea1e3e017a1da3cfa8 (diff) | |
download | frameworks_base-0e89e2b7bcb2c035e8cee77f93120e7c5617f8d2.zip frameworks_base-0e89e2b7bcb2c035e8cee77f93120e7c5617f8d2.tar.gz frameworks_base-0e89e2b7bcb2c035e8cee77f93120e7c5617f8d2.tar.bz2 |
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
Diffstat (limited to 'libs/hwui/Layer.h')
-rw-r--r-- | libs/hwui/Layer.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libs/hwui/Layer.h b/libs/hwui/Layer.h index a8e1c26..64d1d12 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, @@ -280,6 +280,12 @@ public: void render(const OpenGLRenderer& rootRenderer); /** + * Posts a decStrong call to the appropriate thread. + * Thread-safe. + */ + void postDecStrong(); + + /** * Bounds of the layer. */ Rect layer; |