Use TimeTicks instead of clock() in gpu::CommandBufferHelper
clock() returns a processor time, which does not change while a thread is sleeping. So, Flush() would be called less often than you expected. TimeTicks uses a monotonic timer so this would be a better choice than Time because TimeTicks is not affected by host's time settings. BUG=264856 TEST=trybots Review URL: https://codereview.chromium.org/381473004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@282593 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment