| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "media/gpu/android_video_encode_accelerator.h" | 5 #include "media/gpu/android_video_encode_accelerator.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include <set> | 8 #include <set> |
| 9 #include <tuple> | 9 #include <tuple> |
| 10 | 10 |
| (...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 421 size); | 421 size); |
| 422 RETURN_ON_FAILURE(status == MEDIA_CODEC_OK, "CopyFromOutputBuffer failed", | 422 RETURN_ON_FAILURE(status == MEDIA_CODEC_OK, "CopyFromOutputBuffer failed", |
| 423 kPlatformFailureError); | 423 kPlatformFailureError); |
| 424 media_codec_->ReleaseOutputBuffer(buf_index, false); | 424 media_codec_->ReleaseOutputBuffer(buf_index, false); |
| 425 --num_buffers_at_codec_; | 425 --num_buffers_at_codec_; |
| 426 | 426 |
| 427 base::ThreadTaskRunnerHandle::Get()->PostTask( | 427 base::ThreadTaskRunnerHandle::Get()->PostTask( |
| 428 FROM_HERE, | 428 FROM_HERE, |
| 429 base::Bind(&VideoEncodeAccelerator::Client::BitstreamBufferReady, | 429 base::Bind(&VideoEncodeAccelerator::Client::BitstreamBufferReady, |
| 430 client_ptr_factory_->GetWeakPtr(), bitstream_buffer.id(), size, | 430 client_ptr_factory_->GetWeakPtr(), bitstream_buffer.id(), size, |
| 431 key_frame, base::Time::Now() - base::Time())); | 431 key_frame, base::TimeDelta())); |
| 432 } | 432 } |
| 433 | 433 |
| 434 } // namespace media | 434 } // namespace media |
| OLD | NEW |