summaryrefslogtreecommitdiffstats
path: root/libs/surfaceflinger_client
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2010-06-08 15:40:56 -0700
committerMathias Agopian <mathias@google.com>2010-06-08 15:40:56 -0700
commit1debc66521f699bbf0a8eb80cababaef8bc63607 (patch)
tree718d23f3d018d6d30c2428cd121464cab6ff85bc /libs/surfaceflinger_client
parentc44c4742e7d79f6fe846f807bb26ad8b3cd16f68 (diff)
downloadframeworks_base-1debc66521f699bbf0a8eb80cababaef8bc63607.zip
frameworks_base-1debc66521f699bbf0a8eb80cababaef8bc63607.tar.gz
frameworks_base-1debc66521f699bbf0a8eb80cababaef8bc63607.tar.bz2
fix [2751143] Device crashes when in a text box for too long
Diffstat (limited to 'libs/surfaceflinger_client')
-rw-r--r--libs/surfaceflinger_client/SurfaceComposerClient.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/libs/surfaceflinger_client/SurfaceComposerClient.cpp b/libs/surfaceflinger_client/SurfaceComposerClient.cpp
index 5ac0d5d..4096ac6 100644
--- a/libs/surfaceflinger_client/SurfaceComposerClient.cpp
+++ b/libs/surfaceflinger_client/SurfaceComposerClient.cpp
@@ -305,9 +305,7 @@ sp<SurfaceControl> SurfaceComposerClient::createSurface(
sp<ISurface> surface = mClient->createSurface(&data, pid, name,
display, w, h, format, flags);
if (surface != 0) {
- if (uint32_t(data.token) < SharedBufferStack::NUM_LAYERS_MAX) {
- result = new SurfaceControl(this, surface, data, w, h, format, flags);
- }
+ result = new SurfaceControl(this, surface, data, w, h, format, flags);
}
}
return result;