GetVSyncParameters only once every 5 seconds on Linux
commit60cf26c22bf0bb90fa6dbbdef5cb79fe7c305ecb
authorbrianderson <brianderson@chromium.org>
Thu, 11 Sep 2014 22:58:02 +0000 (11 15:58 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 11 Sep 2014 23:05:04 +0000 (11 23:05 +0000)
tree01c5bc8c2bc522f5819969d5093cdadce3ee3557
parent391c18201ba7791e50a1e6113f3802846c3183f1
GetVSyncParameters only once every 5 seconds on Linux

Some Linux drivers implement the GLX_SGI_video_sync
extension in a way that eats a ton of CPU resources.
Only call it periodically to reduce CPU usage.

BUG=373489

Review URL: https://codereview.chromium.org/566663002

Cr-Commit-Position: refs/heads/master@{#294483}
ui/gl/gl_surface_glx.cc