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

Unified Diff: media/base/video_frame.cc

Issue 148553003: Clean up histogram'd media enum max values. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 6 years, 10 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
Index: media/base/video_frame.cc
diff --git a/media/base/video_frame.cc b/media/base/video_frame.cc
index 8a4eb3cce2b62f57daa5f4ee6dcf961157806a16..715f39544ee10b621c96351e22b87b0b33058c5d 100644
--- a/media/base/video_frame.cc
+++ b/media/base/video_frame.cc
@@ -62,8 +62,6 @@ std::string VideoFrame::FormatToString(VideoFrame::Format format) {
return "YV12A";
case VideoFrame::YV12J:
return "YV12J";
- case VideoFrame::HISTOGRAM_MAX:
- return "HISTOGRAM_MAX";
}
NOTREACHED() << "Invalid videoframe format provided: " << format;
return "";
@@ -261,7 +259,6 @@ size_t VideoFrame::NumPlanes(Format format) {
case VideoFrame::YV12A:
return 4;
case VideoFrame::UNKNOWN:
- case VideoFrame::HISTOGRAM_MAX:
break;
}
NOTREACHED() << "Unsupported video frame format: " << format;
@@ -327,7 +324,6 @@ size_t VideoFrame::PlaneAllocationSize(Format format,
}
case VideoFrame::UNKNOWN:
case VideoFrame::NATIVE_TEXTURE:
- case VideoFrame::HISTOGRAM_MAX:
#if defined(VIDEO_HOLE)
case VideoFrame::HOLE:
#endif // defined(VIDEO_HOLE)

Powered by Google App Engine
This is Rietveld 408576698