Force time elapsed queries on certain drivers.
Certain drivers, particularly Mac drivers and ANGLE when running on the D3D11 backend do not support timestamp queries despite implementing an extension that has them in the specification (ARB_timer_query and EXT_disjoint_timer_query). To indicate this, the driver returns 0 when queried for the size of the timestamps they return using glGetQueryiv. Additional logic was added to the GPUTimingImpl class to check for that when using those extensions and to fall back to the time elapsed query implementation of timestamps if the driver does not have native support. BUG=587173 CQ_INCLUDE_TRYBOTS=tryserver.chromium.win:win_optional_gpu_tests_rel Review URL: https://codereview.chromium.org/1687353002 Cr-Commit-Position: refs/heads/master@{#376049}
Showing
Please register or sign in to comment