DescriptionUse 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
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=282593
Patch Set 1 #
Total comments: 7
Patch Set 2 : address comments #
Messages
Total messages: 10 (0 generated)
|