OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/pepper/video_encoder_shim.h" | 5 #include "content/renderer/pepper/video_encoder_shim.h" |
6 | 6 |
7 #include <inttypes.h> | 7 #include <inttypes.h> |
8 | 8 |
9 #include <deque> | 9 #include <deque> |
10 | 10 |
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
480 output_buffer_size); | 480 output_buffer_size); |
481 } | 481 } |
482 | 482 |
483 void VideoEncoderShim::OnBitstreamBufferReady( | 483 void VideoEncoderShim::OnBitstreamBufferReady( |
484 scoped_refptr<media::VideoFrame> frame, | 484 scoped_refptr<media::VideoFrame> frame, |
485 int32_t bitstream_buffer_id, | 485 int32_t bitstream_buffer_id, |
486 size_t payload_size, | 486 size_t payload_size, |
487 bool key_frame) { | 487 bool key_frame) { |
488 DCHECK(RenderThreadImpl::current()); | 488 DCHECK(RenderThreadImpl::current()); |
489 | 489 |
490 host_->BitstreamBufferReady(bitstream_buffer_id, payload_size, key_frame); | 490 host_->BitstreamBufferReady(bitstream_buffer_id, payload_size, key_frame, |
| 491 frame->timestamp()); |
491 } | 492 } |
492 | 493 |
493 void VideoEncoderShim::OnNotifyError( | 494 void VideoEncoderShim::OnNotifyError( |
494 media::VideoEncodeAccelerator::Error error) { | 495 media::VideoEncodeAccelerator::Error error) { |
495 DCHECK(RenderThreadImpl::current()); | 496 DCHECK(RenderThreadImpl::current()); |
496 | 497 |
497 host_->NotifyError(error); | 498 host_->NotifyError(error); |
498 } | 499 } |
499 | 500 |
500 } // namespace content | 501 } // namespace content |
OLD | NEW |