Commit c280fc71 authored by Bo Liu's avatar Bo Liu Committed by Commit Bot

viz: Call DidPresent when SwapAck is suppressed

Webview suppresses SwapAck because calling SwapAck synchronously will
mean it happens before DidSwap. However webview now requires
presentation feedbacks to go through the normal code path in viz, so
remove that check.

Change-Id: I63ec790da644325c5990b80648c93770aa826aab
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1570911
Commit-Queue: Bo <boliu@chromium.org>
Commit-Queue: Peng Huang <penghuang@chromium.org>
Auto-Submit: Bo <boliu@chromium.org>
Reviewed-by: default avatarPeng Huang <penghuang@chromium.org>
Cr-Commit-Position: refs/heads/master@{#651731}
parent 0d660b94
...@@ -579,8 +579,7 @@ bool SkiaOutputSurfaceImplNonDDL::GetGrBackendTexture( ...@@ -579,8 +579,7 @@ bool SkiaOutputSurfaceImplNonDDL::GetGrBackendTexture(
void SkiaOutputSurfaceImplNonDDL::BufferPresented( void SkiaOutputSurfaceImplNonDDL::BufferPresented(
const gfx::PresentationFeedback& feedback) { const gfx::PresentationFeedback& feedback) {
if (need_swapbuffers_ack_) client_->DidReceivePresentationFeedback(feedback);
client_->DidReceivePresentationFeedback(feedback);
} }
void SkiaOutputSurfaceImplNonDDL::ContextLost() { void SkiaOutputSurfaceImplNonDDL::ContextLost() {
......
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