OLD | NEW |
---|---|
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 Loading... | |
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::TimeDelta::FromInternalValue( |
136 key_frame); | 136 base::TimeTicks::Now().ToInternalValue())); |
Pawel Osciak
2016/05/26 07:39:23
base::Time::Now() - base::Time()
shenghao
2016/05/26 10:38:20
Very clever!
| |
137 } | 137 } |
138 | 138 |
139 } // namespace media | 139 } // namespace media |
OLD | NEW |