summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/LayerBase.cpp
diff options
context:
space:
mode:
author Mathias Agopian <mathias@google.com> 2011-01-26 12:41:02 -0800
committer Android (Google) Code Review <android-gerrit@google.com> 2011-01-26 12:41:02 -0800
commita0f40033c03a0b64538bf1c22f83d3c9a325ff87 (patch)
tree9a9385bf9ff3f266c08ef60f4aa2e4674975d111 /services/surfaceflinger/LayerBase.cpp
parent2c070bae4493cd1976c5086ec4cbf6ce10482742 (diff)
parentd35c6667c8233385f31aa203f486b2cb826bf6be (diff)
Merge "fix [3385504] Surface flinger hang when adding dim surface" into honeycomb
Diffstat (limited to 'services/surfaceflinger/LayerBase.cpp')
-rw-r--r--services/surfaceflinger/LayerBase.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/services/surfaceflinger/LayerBase.cpp b/services/surfaceflinger/LayerBase.cpp
index 464841b3962e..8d83f0b4ebfc 100644
--- a/services/surfaceflinger/LayerBase.cpp
+++ b/services/surfaceflinger/LayerBase.cpp
@@ -563,10 +563,15 @@ sp<LayerBaseClient::Surface> LayerBaseClient::getSurface()
if (s == 0) {
s = createSurface();
mClientSurface = s;
+ mClientSurfaceBinder = s->asBinder();
}
return s;
}
+wp<IBinder> LayerBaseClient::getSurfaceBinder() const {
+ return mClientSurfaceBinder;
+}
+
sp<LayerBaseClient::Surface> LayerBaseClient::createSurface() const
{
return new Surface(mFlinger, mIdentity,