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

Unified Diff: content/renderer/media/media_stream_video_source.cc

Issue 2081093002: Cleanup: Remove video constraint names (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nit Created 4 years, 6 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: content/renderer/media/media_stream_video_source.cc
diff --git a/content/renderer/media/media_stream_video_source.cc b/content/renderer/media/media_stream_video_source.cc
index 9f5bee2b6ae3fc8e1bff195ffb47a92ffb2591ff..86f719f07ebb0342e18344c1508b83d011428e0f 100644
--- a/content/renderer/media/media_stream_video_source.cc
+++ b/content/renderer/media/media_stream_video_source.cc
@@ -19,28 +19,6 @@
namespace content {
-// Constraint keys. Specified by draft-alvestrand-constraints-resolution-00b
-const char MediaStreamVideoSource::kMinAspectRatio[] = "minAspectRatio";
-const char MediaStreamVideoSource::kMaxAspectRatio[] = "maxAspectRatio";
-const char MediaStreamVideoSource::kMaxWidth[] = "maxWidth";
-const char MediaStreamVideoSource::kMinWidth[] = "minWidth";
-const char MediaStreamVideoSource::kMaxHeight[] = "maxHeight";
-const char MediaStreamVideoSource::kMinHeight[] = "minHeight";
-const char MediaStreamVideoSource::kMaxFrameRate[] = "maxFrameRate";
-const char MediaStreamVideoSource::kMinFrameRate[] = "minFrameRate";
-
-// TODO(mcasas): Find a way to guarantee all constraints are added to the array.
-const char* const kSupportedConstraints[] = {
- MediaStreamVideoSource::kMaxAspectRatio,
- MediaStreamVideoSource::kMinAspectRatio,
- MediaStreamVideoSource::kMaxWidth,
- MediaStreamVideoSource::kMinWidth,
- MediaStreamVideoSource::kMaxHeight,
- MediaStreamVideoSource::kMinHeight,
- MediaStreamVideoSource::kMaxFrameRate,
- MediaStreamVideoSource::kMinFrameRate,
-};
-
namespace {
const char* const kLegalVideoConstraints[] = {
@@ -306,14 +284,6 @@ MediaStreamVideoSource* MediaStreamVideoSource::GetVideoSource(
return static_cast<MediaStreamVideoSource*>(source.getExtraData());
}
-// static, deprecated
-bool MediaStreamVideoSource::IsConstraintSupported(const std::string& name) {
- return std::find(kSupportedConstraints,
- kSupportedConstraints + arraysize(kSupportedConstraints),
- name) !=
- kSupportedConstraints + arraysize(kSupportedConstraints);
-}
-
MediaStreamVideoSource::MediaStreamVideoSource()
: state_(NEW),
track_adapter_(
« no previous file with comments | « content/renderer/media/media_stream_video_source.h ('k') | content/renderer/media/media_stream_video_source_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698