| OLD | NEW |
| 1 /* | 1 /* |
| 2 * libjingle | 2 * libjingle |
| 3 * Copyright 2012 Google Inc. | 3 * Copyright 2012 Google Inc. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
| 9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
| (...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 | 311 |
| 312 // This signal will be made on media engine render thread. The clients | 312 // This signal will be made on media engine render thread. The clients |
| 313 // of this signal should have no assumptions on what thread this signal | 313 // of this signal should have no assumptions on what thread this signal |
| 314 // come from. | 314 // come from. |
| 315 capturer_->SignalVideoFrame(capturer_, frame); | 315 capturer_->SignalVideoFrame(capturer_, frame); |
| 316 return true; | 316 return true; |
| 317 } | 317 } |
| 318 | 318 |
| 319 private: | 319 private: |
| 320 cricket::VideoCapturer* capturer_; | 320 cricket::VideoCapturer* capturer_; |
| 321 int width_; |
| 322 int height_; |
| 321 | 323 |
| 322 DISALLOW_COPY_AND_ASSIGN(FrameInputWrapper); | 324 DISALLOW_COPY_AND_ASSIGN(FrameInputWrapper); |
| 323 }; | 325 }; |
| 324 | 326 |
| 325 } // anonymous namespace | 327 } // anonymous namespace |
| 326 | 328 |
| 327 namespace webrtc { | 329 namespace webrtc { |
| 328 | 330 |
| 329 rtc::scoped_refptr<VideoSource> VideoSource::Create( | 331 rtc::scoped_refptr<VideoSource> VideoSource::Create( |
| 330 cricket::ChannelManager* channel_manager, | 332 cricket::ChannelManager* channel_manager, |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 460 } | 462 } |
| 461 | 463 |
| 462 void VideoSource::SetState(SourceState new_state) { | 464 void VideoSource::SetState(SourceState new_state) { |
| 463 if (VERIFY(state_ != new_state)) { | 465 if (VERIFY(state_ != new_state)) { |
| 464 state_ = new_state; | 466 state_ = new_state; |
| 465 FireOnChanged(); | 467 FireOnChanged(); |
| 466 } | 468 } |
| 467 } | 469 } |
| 468 | 470 |
| 469 } // namespace webrtc | 471 } // namespace webrtc |
| OLD | NEW |