| 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::Time::Now() - base::Time()); |
| 136 key_frame); | |
| 137 } | 136 } |
| 138 | 137 |
| 139 } // namespace media | 138 } // namespace media |
| OLD | NEW |