Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(808)

Unified Diff: cc/resources/video_resource_updater.cc

Issue 2447013002: cc::VideoResourceUpdater: NOTREACHED;return; replaced by DCHECK. (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/video_resource_updater.cc
diff --git a/cc/resources/video_resource_updater.cc b/cc/resources/video_resource_updater.cc
index 4c6b21619b2de28f55d5e6f1aeb935a028326d36..02986b4ca30f290c13807ad78a240e9a50943bb9 100644
--- a/cc/resources/video_resource_updater.cc
+++ b/cc/resources/video_resource_updater.cc
@@ -432,10 +432,7 @@ VideoFrameExternalResources VideoResourceUpdater::CreateForSoftwarePlanes(
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);
- return VideoFrameExternalResources();
- }
+ DCHECK(media::IsYuvPlanar(input_frame_format));
const bool software_compositor = context_provider_ == NULL;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698