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

Do not use deprecated SkSurface::flush()

Bug: 944194
Change-Id: I9afec626d7cd98c31130360a8103ac9e13fef619
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1582044
Auto-Submit: Peng Huang <penghuang@chromium.org>
Reviewed-by: default avatarJonathan Backer <backer@chromium.org>
Commit-Queue: Peng Huang <penghuang@chromium.org>
Cr-Commit-Position: refs/heads/master@{#653573}
parent ac446931
...@@ -439,9 +439,12 @@ gpu::SyncToken SkiaOutputSurfaceImplNonDDL::SubmitPaint() { ...@@ -439,9 +439,12 @@ gpu::SyncToken SkiaOutputSurfaceImplNonDDL::SubmitPaint() {
auto access = current_render_pass_id_ == 0 auto access = current_render_pass_id_ == 0
? SkSurface::BackendSurfaceAccess::kPresent ? SkSurface::BackendSurfaceAccess::kPresent
: SkSurface::BackendSurfaceAccess::kNoAccess; : SkSurface::BackendSurfaceAccess::kNoAccess;
auto result = sk_current_surface_->flush(access, SkSurface::kNone_FlushFlags, GrFlushInfo flush_info = {
pending_semaphores_.size(), .fFlags = kNone_GrFlushFlags,
pending_semaphores_.data()); .fNumSemaphores = pending_semaphores_.size(),
.fSignalSemaphores = pending_semaphores_.data(),
};
auto result = sk_current_surface_->flush(access, flush_info);
DCHECK_EQ(result, GrSemaphoresSubmitted::kYes); DCHECK_EQ(result, GrSemaphoresSubmitted::kYes);
pending_semaphores_.clear(); pending_semaphores_.clear();
sk_current_surface_ = nullptr; sk_current_surface_ = nullptr;
......
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