diff --git a/wlauto/instrumentation/fps/__init__.py b/wlauto/instrumentation/fps/__init__.py index 54fb353d..9cadeebd 100755 --- a/wlauto/instrumentation/fps/__init__.py +++ b/wlauto/instrumentation/fps/__init__.py @@ -39,10 +39,9 @@ from wlauto.instrumentation import instrument_is_installed from wlauto.exceptions import (InstrumentError, WorkerThreadError, ConfigError, DeviceNotRespondingError, TimeoutError) from wlauto.utils.types import boolean, numeric -from wlauto.utils.fps import FpsProcessor, SurfaceFlingerFrame, GfxInfoFrame, GFXINFO_EXEMPT +from wlauto.utils.fps import (FpsProcessor, SurfaceFlingerFrame, GfxInfoFrame, GFXINFO_EXEMPT, + VSYNC_INTERVAL) - -VSYNC_INTERVAL = 16666667 PAUSE_LATENCY = 20 EPSYLON = 0.0001 diff --git a/wlauto/utils/fps.py b/wlauto/utils/fps.py index 84016622..735be824 100755 --- a/wlauto/utils/fps.py +++ b/wlauto/utils/fps.py @@ -29,6 +29,8 @@ GfxInfoFrame = collections.namedtuple('GfxInfoFrame', 'Flags IntendedVsync Vsync # Android M: WindowLayoutChanged | SurfaceCanvas GFXINFO_EXEMPT = 1 | 4 +VSYNC_INTERVAL = 16666667 + class FpsProcessor(object): """