Commit 7e0b9dd9 authored by Vasiliy Telezhnikov's avatar Vasiliy Telezhnikov Committed by Commit Bot

Abort draw if SetDrawRectangle fails

Before https://crrev.com/2302924 we would exit the process on context
immediately, so it wasn't problem. Now MarkContextLost abandons
GrContext, so we need to abort draw here.

Bug: 1109601
Change-Id: I649dffb065fa28a689279e6c8f6619bd9ec29516
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2323132Reviewed-by: default avatarJonathan Backer <backer@chromium.org>
Commit-Queue: Vasiliy Telezhnikov <vasilyt@chromium.org>
Cr-Commit-Position: refs/heads/master@{#792319}
parent dea14d21
......@@ -517,6 +517,7 @@ bool SkiaOutputSurfaceImplOnGpu::FinishPaintCurrentFrame(
if (!output_device_->SetDrawRectangle(*draw_rectangle)) {
MarkContextLost(
ContextLostReason::CONTEXT_LOST_SET_DRAW_RECTANGLE_FAILED);
return false;
}
}
......
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