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

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

Issue 11734027: Roll libjingle 254:257 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « content/renderer/media/rtc_video_capturer.h ('k') | third_party/libjingle/README.chromium » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/rtc_video_capturer.h" 5 #include "content/renderer/media/rtc_video_capturer.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 8
9 namespace content { 9 namespace content {
10 10
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 return state_ == VIDEO_CAPTURE_STATE_STARTED; 59 return state_ == VIDEO_CAPTURE_STATE_STARTED;
60 } 60 }
61 61
62 bool RtcVideoCapturer::GetPreferredFourccs(std::vector<uint32>* fourccs) { 62 bool RtcVideoCapturer::GetPreferredFourccs(std::vector<uint32>* fourccs) {
63 if (!fourccs) 63 if (!fourccs)
64 return false; 64 return false;
65 fourccs->push_back(cricket::FOURCC_I420); 65 fourccs->push_back(cricket::FOURCC_I420);
66 return true; 66 return true;
67 } 67 }
68 68
69 bool RtcVideoCapturer::IsScreencast() { 69 bool RtcVideoCapturer::IsScreencast() const {
70 return is_screencast_; 70 return is_screencast_;
71 } 71 }
72 72
73 bool RtcVideoCapturer::GetBestCaptureFormat(const cricket::VideoFormat& desired, 73 bool RtcVideoCapturer::GetBestCaptureFormat(const cricket::VideoFormat& desired,
74 cricket::VideoFormat* best_format) { 74 cricket::VideoFormat* best_format) {
75 if (!best_format) { 75 if (!best_format) {
76 return false; 76 return false;
77 } 77 }
78 78
79 // Chrome does not support capability enumeration. 79 // Chrome does not support capability enumeration.
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 converted_state = cricket::CS_FAILED; 120 converted_state = cricket::CS_FAILED;
121 break; 121 break;
122 default: 122 default:
123 NOTREACHED(); 123 NOTREACHED();
124 break; 124 break;
125 } 125 }
126 SignalStateChange(this, converted_state); 126 SignalStateChange(this, converted_state);
127 } 127 }
128 128
129 } // namespace content 129 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/media/rtc_video_capturer.h ('k') | third_party/libjingle/README.chromium » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698