Prevent destroy surface during window replacement.

When a window replacement request is ongoing, the old window shouldn't destroy it's surface
until window replacement finished.

Issue:
https://code.google.com/p/android/issues/detail?id=226831
Signed-off-by: mydongistiny <jaysonedson@gmail.com>
1 file changed