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 18:39:45 -0700
commitddc31c3e2bc6ffe66695c385d23e8ccc3c6dad06 (patch)
treedc823058282daaf8d85a5a2c69feb3dd0f20bd93 /services/surfaceflinger/Layer.cpp
parent5eabb2c13cf2fb41861dd29c76e3ead91c2bec0e (diff)
fix RefBase so it retains binary-compatibility with gingerbread
Bug: 4595257 Change-Id: I0d5e10f497e3f39868bff58f6ded510c38b44b12
Diffstat (limited to 'services/surfaceflinger/Layer.cpp')
-rw-r--r--services/surfaceflinger/Layer.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/services/surfaceflinger/Layer.cpp b/services/surfaceflinger/Layer.cpp
index 0137120a0b..2bab6a8fe1 100644
--- a/services/surfaceflinger/Layer.cpp
+++ b/services/surfaceflinger/Layer.cpp
@@ -69,13 +69,15 @@ Layer::Layer(SurfaceFlinger* flinger,
glGenTextures(1, &mTextureName);
}
-void Layer::destroy() const {
- mFlinger->destroyLayer(this);
+void Layer::destroy(RefBase const* base) {
+ mFlinger->destroyLayer(static_cast<LayerBase const*>(base));
}
void Layer::onFirstRef()
{
LayerBaseClient::onFirstRef();
+ setDestroyer(this);
+
struct FrameQueuedListener : public SurfaceTexture::FrameAvailableListener {
FrameQueuedListener(Layer* layer) : mLayer(layer) { }
private: