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

Workaround skia promise image release racinqg issue

Bug: 905337
Change-Id: I14e4188def4719f0b04151bf9d76731a46889612
Reviewed-on: https://chromium-review.googlesource.com/c/1351266Reviewed-by: default avatarMichael Spang <spang@chromium.org>
Commit-Queue: Peng Huang <penghuang@chromium.org>
Cr-Commit-Position: refs/heads/master@{#612334}
parent 78a36aa4
...@@ -1153,9 +1153,12 @@ void SkiaRenderer::FinishDrawingQuadList() { ...@@ -1153,9 +1153,12 @@ void SkiaRenderer::FinishDrawingQuadList() {
DrawBatchedTileQuads(); DrawBatchedTileQuads();
switch (draw_mode_) { switch (draw_mode_) {
case DrawMode::DDL: { case DrawMode::DDL: {
gpu::SyncToken sync_token = skia_output_surface_->SubmitPaint(); // Skia doesn't support releasing the last promise image ref on the DDL
// recordering thread. So we clear all cached promise images before
// SubmitPaint to the GPU thread.
promise_images_.clear(); promise_images_.clear();
yuv_promise_images_.clear(); yuv_promise_images_.clear();
gpu::SyncToken sync_token = skia_output_surface_->SubmitPaint();
lock_set_for_external_use_.UnlockResources(sync_token); lock_set_for_external_use_.UnlockResources(sync_token);
break; break;
} }
......
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