| 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 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 419 size); | 419 size); |
| 420 RETURN_ON_FAILURE(status == MEDIA_CODEC_OK, "CopyFromOutputBuffer failed", | 420 RETURN_ON_FAILURE(status == MEDIA_CODEC_OK, "CopyFromOutputBuffer failed", |
| 421 kPlatformFailureError); | 421 kPlatformFailureError); |
| 422 media_codec_->ReleaseOutputBuffer(buf_index, false); | 422 media_codec_->ReleaseOutputBuffer(buf_index, false); |
| 423 --num_buffers_at_codec_; | 423 --num_buffers_at_codec_; |
| 424 | 424 |
| 425 base::ThreadTaskRunnerHandle::Get()->PostTask( | 425 base::ThreadTaskRunnerHandle::Get()->PostTask( |
| 426 FROM_HERE, | 426 FROM_HERE, |
| 427 base::Bind(&VideoEncodeAccelerator::Client::BitstreamBufferReady, | 427 base::Bind(&VideoEncodeAccelerator::Client::BitstreamBufferReady, |
| 428 client_ptr_factory_->GetWeakPtr(), bitstream_buffer.id(), size, | 428 client_ptr_factory_->GetWeakPtr(), bitstream_buffer.id(), size, |
| 429 key_frame, base::Time::Now() - base::Time())); | 429 key_frame, base::TimeDelta())); |
| 430 } | 430 } |
| 431 | 431 |
| 432 } // namespace media | 432 } // namespace media |
| OLD | NEW |