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

Side by Side Diff: media/video/fake_video_encode_accelerator.cc

Issue 1996453003: RTC Video Encoder: Use capturer timestamp (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 | « media/gpu/vt_video_encode_accelerator_mac.cc ('k') | media/video/video_encode_accelerator.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/video/fake_video_encode_accelerator.h" 5 #include "media/video/fake_video_encode_accelerator.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/single_thread_task_runner.h" 10 #include "base/single_thread_task_runner.h"
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 bitstream_buffer_id, 124 bitstream_buffer_id,
125 kMinimumOutputBufferSize, 125 kMinimumOutputBufferSize,
126 key_frame)); 126 key_frame));
127 } 127 }
128 } 128 }
129 129
130 void FakeVideoEncodeAccelerator::DoBitstreamBufferReady( 130 void FakeVideoEncodeAccelerator::DoBitstreamBufferReady(
131 int32_t bitstream_buffer_id, 131 int32_t bitstream_buffer_id,
132 size_t payload_size, 132 size_t payload_size,
133 bool key_frame) const { 133 bool key_frame) const {
134 client_->BitstreamBufferReady(bitstream_buffer_id, 134 client_->BitstreamBufferReady(bitstream_buffer_id, payload_size, key_frame,
135 payload_size, 135 base::Time::Now() - base::Time());
136 key_frame);
137 } 136 }
138 137
139 } // namespace media 138 } // namespace media
OLDNEW
« no previous file with comments | « media/gpu/vt_video_encode_accelerator_mac.cc ('k') | media/video/video_encode_accelerator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698