summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/Layer.cpp
diff options
context:
space:
mode:
author Mathias Agopian <mathias@google.com> 2011-06-12 18:05:53 -0700
committer Mathias Agopian <mathias@google.com> 2011-06-13 13:58:34 -0700
commitafffa8fa9f82a7343e1158bf921931fd3e3df615 (patch)
tree04e6d9721d21895ca93b209f98db8b5b65ab9991 /services/surfaceflinger/Layer.cpp
parentd027329cd6105c05c157e3858a170e4f04eb0e3e (diff)
fix RefBase so it retains binary-compatibility with gingerbread (DO NOT MERGE)
Bug: 4595257 Change-Id: I4773cf4fe59b2509db0ed733739eb6961d473b25
Diffstat (limited to 'services/surfaceflinger/Layer.cpp')
-rw-r--r--services/surfaceflinger/Layer.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/services/surfaceflinger/Layer.cpp b/services/surfaceflinger/Layer.cpp
index 4739cc3072c1..0087fd5e32fd 100644
--- a/services/surfaceflinger/Layer.cpp
+++ b/services/surfaceflinger/Layer.cpp
@@ -60,6 +60,7 @@ Layer::Layer(SurfaceFlinger* flinger,
mWidth(0), mHeight(0), mNeedsScaling(false), mFixedSize(false),
mBypassState(false)
{
+ setDestroyer(this);
}
Layer::~Layer()
@@ -76,8 +77,8 @@ Layer::~Layer()
}
}
-void Layer::destroy() const {
- mFlinger->destroyLayer(this);
+void Layer::destroy(RefBase const* base) {
+ mFlinger->destroyLayer(static_cast<LayerBase const*>(base));
}
status_t Layer::setToken(const sp<UserClient>& userClient,