| 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_(
|
|
|