Merge "Prevent SurfaceFlinger from using layer token 31." into gingerbread
This commit is contained in:
commit
eafc33acff
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user