Commit 2cc707d0 authored by Klaus Weidner's avatar Klaus Weidner Committed by Commit Bot

Replace PreGrContextSubmit DCHECK with conditional

This check was added by
https://chromium-review.googlesource.com/c/chromium/src/+/2286052
and is failing for WebXR presentation when using immersive-ar on
Android.

Change-Id: Id47b7fb33ea9b89d5a782decde104c4ef5b4eccf
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2288824
Commit-Queue: Klaus Weidner <klausw@chromium.org>
Commit-Queue: Peng Huang <penghuang@chromium.org>
Auto-Submit: Klaus Weidner <klausw@chromium.org>
Reviewed-by: default avatarPeng Huang <penghuang@chromium.org>
Cr-Commit-Position: refs/heads/master@{#786578}
parent 2be78178
......@@ -121,8 +121,9 @@ void SkiaOutputDeviceBufferQueue::ScheduleOverlays(
}
void SkiaOutputDeviceBufferQueue::PreGrContextSubmit() {
DCHECK(current_image_);
current_image_->PreGrContextSubmit();
// The current image may be missing, for example during WebXR presentation.
if (current_image_)
current_image_->PreGrContextSubmit();
}
void SkiaOutputDeviceBufferQueue::SwapBuffers(
......
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