| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |