| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 377 | 377 |
| 378 // Post processing is not supported if the frame is backed by a texture. | 378 // Post processing is not supported if the frame is backed by a texture. |
| 379 if (video_frame->native_handle() == NULL) { | 379 if (video_frame->native_handle() == NULL) { |
| 380 if (config_.pre_render_callback) | 380 if (config_.pre_render_callback) |
| 381 config_.pre_render_callback->FrameCallback(video_frame); | 381 config_.pre_render_callback->FrameCallback(video_frame); |
| 382 } | 382 } |
| 383 } | 383 } |
| 384 | 384 |
| 385 int VideoReceiveStream::RenderFrame(const uint32_t /*stream_id*/, | 385 int VideoReceiveStream::RenderFrame(const uint32_t /*stream_id*/, |
| 386 const VideoFrame& video_frame) { | 386 const VideoFrame& video_frame) { |
| 387 int64_t sync_offset_ms; |
| 388 if (vie_sync_.GetStreamSyncOffsetInMs(video_frame, &sync_offset_ms)) |
| 389 stats_proxy_.OnSyncOffsetUpdated(sync_offset_ms); |
| 390 |
| 387 // TODO(pbos): Wire up config_.render->IsTextureSupported() and convert if not | 391 // TODO(pbos): Wire up config_.render->IsTextureSupported() and convert if not |
| 388 // supported. Or provide methods for converting a texture frame in | 392 // supported. Or provide methods for converting a texture frame in |
| 389 // VideoFrame. | 393 // VideoFrame. |
| 390 | 394 |
| 391 if (config_.renderer != nullptr) | 395 if (config_.renderer != nullptr) |
| 392 config_.renderer->RenderFrame( | 396 config_.renderer->RenderFrame( |
| 393 video_frame, | 397 video_frame, |
| 394 video_frame.render_time_ms() - clock_->TimeInMilliseconds()); | 398 video_frame.render_time_ms() - clock_->TimeInMilliseconds()); |
| 395 | 399 |
| 396 stats_proxy_.OnRenderedFrame(video_frame); | 400 stats_proxy_.OnRenderedFrame(video_frame); |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 432 const std::vector<uint16_t>& sequence_numbers) { | 436 const std::vector<uint16_t>& sequence_numbers) { |
| 433 rtp_rtcp_->SendNack(sequence_numbers); | 437 rtp_rtcp_->SendNack(sequence_numbers); |
| 434 } | 438 } |
| 435 | 439 |
| 436 void VideoReceiveStream::RequestKeyFrame() { | 440 void VideoReceiveStream::RequestKeyFrame() { |
| 437 rtp_rtcp_->RequestKeyFrame(); | 441 rtp_rtcp_->RequestKeyFrame(); |
| 438 } | 442 } |
| 439 | 443 |
| 440 } // namespace internal | 444 } // namespace internal |
| 441 } // namespace webrtc | 445 } // namespace webrtc |
| OLD | NEW |