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

Side by Side Diff: content/renderer/media/media_stream_video_source.cc

Issue 973373002: fix for builds with webrtc disabled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move int const values to media_stream_video_source.h Created 5 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/media/media_stream_video_source.h" 5 #include "content/renderer/media/media_stream_video_source.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <string> 9 #include <string>
10 10
(...skipping 21 matching lines...) Expand all
32 MediaStreamVideoSource::kMaxAspectRatio, 32 MediaStreamVideoSource::kMaxAspectRatio,
33 MediaStreamVideoSource::kMinAspectRatio, 33 MediaStreamVideoSource::kMinAspectRatio,
34 MediaStreamVideoSource::kMaxWidth, 34 MediaStreamVideoSource::kMaxWidth,
35 MediaStreamVideoSource::kMinWidth, 35 MediaStreamVideoSource::kMinWidth,
36 MediaStreamVideoSource::kMaxHeight, 36 MediaStreamVideoSource::kMaxHeight,
37 MediaStreamVideoSource::kMinHeight, 37 MediaStreamVideoSource::kMinHeight,
38 MediaStreamVideoSource::kMaxFrameRate, 38 MediaStreamVideoSource::kMaxFrameRate,
39 MediaStreamVideoSource::kMinFrameRate, 39 MediaStreamVideoSource::kMinFrameRate,
40 }; 40 };
41 41
42 const int MediaStreamVideoSource::kDefaultWidth = 640;
43 const int MediaStreamVideoSource::kDefaultHeight = 480;
44 const int MediaStreamVideoSource::kDefaultFrameRate = 30;
45 const int MediaStreamVideoSource::kUnknownFrameRate = 0;
46
47 namespace { 42 namespace {
48 43
49 // Google-specific key prefix. Constraints with this prefix are ignored if they 44 // Google-specific key prefix. Constraints with this prefix are ignored if they
50 // are unknown. 45 // are unknown.
51 const char kGooglePrefix[] = "goog"; 46 const char kGooglePrefix[] = "goog";
52 47
53 // Returns true if |constraint| has mandatory constraints. 48 // Returns true if |constraint| has mandatory constraints.
54 bool HasMandatoryConstraints(const blink::WebMediaConstraints& constraints) { 49 bool HasMandatoryConstraints(const blink::WebMediaConstraints& constraints) {
55 blink::WebVector<blink::WebMediaConstraint> mandatory_constraints; 50 blink::WebVector<blink::WebMediaConstraint> mandatory_constraints;
56 constraints.getMandatoryConstraints(mandatory_constraints); 51 constraints.getMandatoryConstraints(mandatory_constraints);
(...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after
618 : track(track), 613 : track(track),
619 frame_callback(frame_callback), 614 frame_callback(frame_callback),
620 constraints(constraints), 615 constraints(constraints),
621 callback(callback) { 616 callback(callback) {
622 } 617 }
623 618
624 MediaStreamVideoSource::RequestedConstraints::~RequestedConstraints() { 619 MediaStreamVideoSource::RequestedConstraints::~RequestedConstraints() {
625 } 620 }
626 621
627 } // namespace content 622 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698