DO NOT MERGE: improve TestVirtualDisplayRecycles to reduce memory usage

TestVirtualDisplayRecycles allocates lots of memory.
in low memory system, this test get failed because process died by low-memory killer easily.

To prevent low memory case during test,
- clear the allocated buffer for dalvik to get more chance
  to do GC at window cleanup
- call cleanupGl() at stopComposition

Change-Id: I1c118ceba9dfe29a84bd9edad43eac21ba50a92b
Signed-off-by: Harry Hong <>
(cherry picked from commit caf25cf58f45c3c2039de16d37242deab0e45c57)
(cherry picked from commit 1c01e9d1bb4724b983e9d756ce7238a162f9f7a2)
1 file changed