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.

BUG=chrome-os-partner:2890
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.
Cherry-Picked: http://gerrit.chromium.org/gerrit/751

Change-Id: Ifc17c8571cf2f43c32308bb33d044b683ca2e791
Reviewed-on: http://gerrit.chromium.org/gerrit/837
Reviewed-by: Rong Chang <rongchang@chromium.org>
Tested-by: Hung-Te Lin <hungte@chromium.org>
1 file changed