graphics_GLBench: Use existing X session if possible (for factory)

The factory test relies on an X session. If we always restart a X to run
graphics_GLBench, factory test will be killed.

This CL helps GLBench to use existing X session, especially when running under
factory test environment.

TEST=(edit factory test list to enable graphics_GLbench)
     Run grahpics_GLBench in factory test, seeing the Green box in left-top
     corner; factory test is still running.

Change-Id: Ifc17c8571cf2f43c32308bb33d044b683ca2e791
Reviewed-by: Rong Chang <>
Tested-by: Hung-Te Lin <>
1 file changed