diff options
author | John Reck <jreck@google.com> | 2014-10-31 23:25:44 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2014-10-31 23:25:44 +0000 |
commit | e05575e9c36850d8cfe49396ac9a1372511b12bf (patch) | |
tree | cd106a73af96598499f82ac5dc5fc40dabb3df4a /libs/hwui/Layer.h | |
parent | 58f2a1e8a47de6c3ce4f588b07fc052f4687492d (diff) | |
parent | a51fba0bf037844bcb911e69e8af733e6d2cccf6 (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.h | 8 |
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; |