summaryrefslogtreecommitdiffstats
path: root/libs/surfaceflinger/LayerBuffer.cpp
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2009-06-23 20:06:46 -0700
committerMathias Agopian <mathias@google.com>2009-06-23 20:06:46 -0700
commit2e123245811a1f31c080a29728fcc1655045f011 (patch)
treebc8e84f4040daa648b819424a431ae1826203437 /libs/surfaceflinger/LayerBuffer.cpp
parente7829b8656ab4d179aa608e5715280819e5230b5 (diff)
downloadframeworks_native-2e123245811a1f31c080a29728fcc1655045f011.zip
frameworks_native-2e123245811a1f31c080a29728fcc1655045f011.tar.gz
frameworks_native-2e123245811a1f31c080a29728fcc1655045f011.tar.bz2
fix a bug causing push-buffer surfaces' identity to be garbage, which resulted in some attributes (size/pos) to fail to be set
Diffstat (limited to 'libs/surfaceflinger/LayerBuffer.cpp')
-rw-r--r--libs/surfaceflinger/LayerBuffer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/surfaceflinger/LayerBuffer.cpp b/libs/surfaceflinger/LayerBuffer.cpp
index 3db5434..22fd499 100644
--- a/libs/surfaceflinger/LayerBuffer.cpp
+++ b/libs/surfaceflinger/LayerBuffer.cpp
@@ -52,6 +52,7 @@ LayerBuffer::~LayerBuffer()
void LayerBuffer::onFirstRef()
{
+ LayerBaseClient::onFirstRef();
mSurface = new SurfaceBuffer(mFlinger, clientIndex(),
const_cast<LayerBuffer *>(this));
}