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
commitc6603951d45fc9b0d1776fec9444b6f31af92840 (patch)
tree862d116c32f53ea2f206caa7aefc509087c44a38 /libs/surfaceflinger/LayerBuffer.cpp
parentf6c2a1ae60a190951b1c9e93f64f62a000cb51fd (diff)
downloadframeworks_base-c6603951d45fc9b0d1776fec9444b6f31af92840.zip
frameworks_base-c6603951d45fc9b0d1776fec9444b6f31af92840.tar.gz
frameworks_base-c6603951d45fc9b0d1776fec9444b6f31af92840.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));
}