diff options
author | Mathias Agopian <mathias@google.com> | 2010-06-08 15:40:56 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2010-06-08 15:40:56 -0700 |
commit | 53503a97a9afa9e876b1e95ca7e3b46c76aa4f15 (patch) | |
tree | 1a1c3f4f0dc80c03e68d3bff277e82dad0005830 /libs/surfaceflinger_client | |
parent | d13aa57bc429aa8dc8d5571cd3d92004d3e2526b (diff) | |
download | frameworks_native-53503a97a9afa9e876b1e95ca7e3b46c76aa4f15.zip frameworks_native-53503a97a9afa9e876b1e95ca7e3b46c76aa4f15.tar.gz frameworks_native-53503a97a9afa9e876b1e95ca7e3b46c76aa4f15.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.cpp | 4 |
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; |