[OT-PW] Fix a crash in DrawImageRectOp::RasterWithFlags
It appears that most of the crash in off-thread paint worklet is due to the paint_record is null in the ImageProvider::ScopedResult. The reason is that at PaintWorkletImageCache::PaintImageInTask, the Record from painter_->Paint could be null because the Paint function eventually calls CSSPaintDefinition::Paint and that could return nullptr. This CL ensures that all the entries in the records_ have non-null PaintRecord. Bug: 957458 Change-Id: I6ce22d3c754cc3daac4c8285554cfaecf2eb654d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1588360 Commit-Queue: Xida Chen <xidachen@chromium.org> Reviewed-by:Stephen McGruer <smcgruer@chromium.org> Cr-Commit-Position: refs/heads/master@{#656356}
Showing
This diff is collapsed.
Please register or sign in to comment