Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(138)

Side by Side Diff: media/gpu/android_video_encode_accelerator.cc

Issue 2435693004: Reland: Use webrtc::VideoFrame timestamp in RTCVideoEncoder (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/renderer/media/gpu/rtc_video_encoder_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « content/renderer/media/gpu/rtc_video_encoder_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698