Commit 2c911e7b authored by Khushal's avatar Khushal Committed by Commit Bot

webgl/canvas: Missing null check for PaintImage.

R=zmo@chromium.org

Bug: 974485,976060
Change-Id: Ifd40d06facc31e0f9e0629490cb1a136c0fad0c8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1663736
Auto-Submit: Khushal <khushalsagar@chromium.org>
Commit-Queue: Zhenyao Mo <zmo@chromium.org>
Reviewed-by: default avatarZhenyao Mo <zmo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#670250}
parent 07a7451a
......@@ -1644,7 +1644,7 @@ bool WebGLRenderingContextBase::CopyRenderingResultsFromDrawingBuffer(
// is a separate path for the accelerated case is that we assume texture
// copying is faster than drawImage.
scoped_refptr<StaticBitmapImage> image = GetImage(kPreferAcceleration);
if (!image)
if (!image || !image->PaintImageForCurrentFrame())
return false;
cc::PaintFlags paint_flags;
paint_flags.setBlendMode(SkBlendMode::kSrc);
......
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