| Index: cc/resources/video_resource_updater.cc
|
| diff --git a/cc/resources/video_resource_updater.cc b/cc/resources/video_resource_updater.cc
|
| index c35d5d4273db362f72fb00b5fed805019470d5b3..0aa5968071e06f5f28867ce1d5fbf088fae87708 100644
|
| --- a/cc/resources/video_resource_updater.cc
|
| +++ b/cc/resources/video_resource_updater.cc
|
| @@ -272,6 +272,9 @@ VideoResourceUpdater::CreateExternalResourcesFromVideoFrame(
|
| scoped_refptr<media::VideoFrame> video_frame) {
|
| if (video_frame->format() == media::PIXEL_FORMAT_UNKNOWN)
|
| return VideoFrameExternalResources();
|
| + // TODO(astojilj): Support PIXEL_FORMAT_Y16. crbug.com/624436
|
| + if (video_frame->format() == media::PIXEL_FORMAT_Y16)
|
| + return VideoFrameExternalResources();
|
| DCHECK(video_frame->HasTextures() || video_frame->IsMappable());
|
| if (video_frame->HasTextures())
|
| return CreateForHardwarePlanes(std::move(video_frame));
|
| @@ -357,9 +360,6 @@ VideoFrameExternalResources VideoResourceUpdater::CreateForSoftwarePlanes(
|
| break;
|
| }
|
|
|
| - // TODO(dshwang): support PIXEL_FORMAT_Y16. crbug.com/624436
|
| - DCHECK_NE(bits_per_channel, 16);
|
| -
|
| // Only YUV software video frames are supported.
|
| if (!media::IsYuvPlanar(input_frame_format)) {
|
| NOTREACHED() << media::VideoPixelFormatToString(input_frame_format);
|
|
|