diff --git a/module/daemon/benchmark.py b/module/daemon/benchmark.py index e2efdc26b..f59212a4a 100644 --- a/module/daemon/benchmark.py +++ b/module/daemon/benchmark.py @@ -192,6 +192,8 @@ class Benchmark(DaemonBase): click = ['ADB', 'Hermit', 'MaaTouch'] if self.device.nemu_ipc_available(): screenshot.append('nemu_ipc') + if self.device.ldopengl_available(): + screenshot.append('ldopengl') scene = self.config.Benchmark_TestScene if 'screenshot' not in scene: @@ -232,6 +234,8 @@ class Benchmark(DaemonBase): screenshot = remove('ADB_nc', 'aScreenCap_nc') if self.device.nemu_ipc_available(): screenshot.append('nemu_ipc') + if self.device.ldopengl_available(): + screenshot.append('ldopengl') screenshot = tuple(screenshot) self.TEST_TOTAL = 3 diff --git a/module/device/screenshot.py b/module/device/screenshot.py index 209a8af16..292d3869b 100644 --- a/module/device/screenshot.py +++ b/module/device/screenshot.py @@ -51,6 +51,10 @@ class Screenshot(Adb, WSA, DroidCast, AScreenCap, Scrcpy, NemuIpc, LDOpenGL): logger.attr('nemu_ipc_available', available) if available: return 'nemu_ipc' + available = self.ldopengl_available() + logger.attr('ldopengl_available', available) + if available: + return 'ldopengl' return '' def screenshot(self):