Commit a8c6b4b4 authored by rileya's avatar rileya Committed by Commit bot

Fix video->canvas with alpha in SW video->HW canvas case.

BUG=456001

Review URL: https://codereview.chromium.org/887243003

Cr-Commit-Position: refs/heads/master@{#315107}
parent 1db1789f
......@@ -206,9 +206,10 @@ class VideoImageGenerator : public SkImageGenerator {
SkYUVColorSpace* color_space) override {
if (!frame_.get() || !IsYUV(frame_->format()) ||
// TODO(rileya): Skia currently doesn't support Rec709 YUV conversion,
// Remove this case once it does. As-is we will fall back on the
// pure-software path in this case.
frame_->format() == VideoFrame::YV12HD) {
// or YUVA conversion. Remove this case once it does. As-is we will
// fall back on the pure-software path in this case.
frame_->format() == VideoFrame::YV12HD ||
frame_->format() == VideoFrame::YV12A) {
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