summaryrefslogtreecommitdiff
path: root/libs/hwui/Layer.h
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2014-10-31 23:25:44 +0000
committerandroid-build-merger <android-build-merger@google.com>2014-10-31 23:25:44 +0000
commite05575e9c36850d8cfe49396ac9a1372511b12bf (patch)
treecd106a73af96598499f82ac5dc5fc40dabb3df4a /libs/hwui/Layer.h
parent58f2a1e8a47de6c3ce4f588b07fc052f4687492d (diff)
parenta51fba0bf037844bcb911e69e8af733e6d2cccf6 (diff)
am a8d83d63: Merge "Layer changes" into lmp-mr1-dev
automerge: a51fba0 * commit 'a51fba0bf037844bcb911e69e8af733e6d2cccf6': Layer changes
Diffstat (limited to 'libs/hwui/Layer.h')
-rw-r--r--libs/hwui/Layer.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/libs/hwui/Layer.h b/libs/hwui/Layer.h
index b26459524c39..2d6a72717b45 100644
--- a/libs/hwui/Layer.h
+++ b/libs/hwui/Layer.h
@@ -52,7 +52,7 @@ struct 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;