Commit c30b43e9 authored by Peng Huang's avatar Peng Huang Committed by Commit Bot

Only run UpdateVSyncParameters when presentation feedback which is aligned with VSYNC.

Bug: 776877
Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;luci.chromium.try:win_optional_gpu_tests_rel
Change-Id: If78208ecf3f5becb366b7860e15e1ac09d94c9df
Reviewed-on: https://chromium-review.googlesource.com/1023165Reviewed-by: default avatarAntoine Labour <piman@chromium.org>
Commit-Queue: Peng Huang <penghuang@chromium.org>
Cr-Commit-Position: refs/heads/master@{#553553}
parent 3972cc6c
......@@ -840,7 +840,9 @@ void CommandBufferProxyImpl::OnBufferPresented(
presentation_callback_.Run(swap_id, feedback);
if (update_vsync_parameters_completion_callback_ &&
feedback.timestamp != base::TimeTicks()) {
feedback.flags & gfx::PresentationFeedback::kVSync &&
feedback.timestamp != base::TimeTicks() &&
feedback.interval != base::TimeDelta()) {
update_vsync_parameters_completion_callback_.Run(feedback.timestamp,
feedback.interval);
}
......
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