OSDN Git Service
(root)
/
android-x86
/
frameworks-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58c9d47
)
Prevent SurfaceFlinger from using layer token 31.
author
Jamie Gennis
<jgennis@google.com>
Fri, 11 Feb 2011 00:18:36 +0000
(16:18 -0800)
committer
Jamie Gennis
<jgennis@google.com>
Fri, 11 Feb 2011 00:18:36 +0000
(16:18 -0800)
Bug:
2964479
Change-Id: I81e948924bff35b8b300d409f2c09f3779bcdeec
services/surfaceflinger/SurfaceFlinger.cpp
patch
|
blob
|
history
diff --git
a/services/surfaceflinger/SurfaceFlinger.cpp
b/services/surfaceflinger/SurfaceFlinger.cpp
index
4876946
..
4b3235d
100644
(file)
--- a/
services/surfaceflinger/SurfaceFlinger.cpp
+++ b/
services/surfaceflinger/SurfaceFlinger.cpp
@@
-2427,7
+2427,7
@@
ssize_t UserClient::getTokenForSurface(const sp<ISurface>& sur) const
}
break;
}
- if (++name >
31
)
+ if (++name >
= SharedBufferStack::NUM_LAYERS_MAX
)
name = NO_MEMORY;
} while(name >= 0);