Commit 753704e2 authored by Peng Huang's avatar Peng Huang Committed by Commit Bot

Reduce log for GetVSyncParametersIfAvailable() failed

Bug: None
Change-Id: I78552786fa44682bea1b0e0f0d386aa582bc97f2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2072926Reviewed-by: default avatarJonathan Backer <backer@chromium.org>
Commit-Queue: Peng Huang <penghuang@chromium.org>
Cr-Commit-Position: refs/heads/master@{#745454}
parent f4a1635a
......@@ -253,10 +253,9 @@ void GLSurfacePresentationHelper::CheckPendingFrames() {
vsync_timebase_ = base::TimeTicks();
vsync_interval_ = base::TimeDelta();
static unsigned int count = 0;
++count;
// GetVSyncParametersIfAvailable() could be called and failed frequently,
// so we have to limit the LOG to avoid flooding the log.
LOG_IF(ERROR, count < 20 || !(count & 0xff))
LOG_IF(ERROR, ++count < 4 || !(count & 0xffff))
<< "GetVSyncParametersIfAvailable() failed for " << count
<< " times!";
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment