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/gpu/fake_video_decode_accelerator.h" | 5 #include "media/gpu/fake_video_decode_accelerator.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <string.h> | 8 #include <string.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 flushing_ = false; | 163 flushing_ = false; |
164 client_->NotifyFlushDone(); | 164 client_->NotifyFlushDone(); |
165 } | 165 } |
166 while (!free_output_buffers_.empty() && !queued_bitstream_ids_.empty()) { | 166 while (!free_output_buffers_.empty() && !queued_bitstream_ids_.empty()) { |
167 int bitstream_id = queued_bitstream_ids_.front(); | 167 int bitstream_id = queued_bitstream_ids_.front(); |
168 queued_bitstream_ids_.pop(); | 168 queued_bitstream_ids_.pop(); |
169 int buffer_id = free_output_buffers_.front(); | 169 int buffer_id = free_output_buffers_.front(); |
170 free_output_buffers_.pop(); | 170 free_output_buffers_.pop(); |
171 | 171 |
172 const Picture picture = | 172 const Picture picture = |
173 Picture(buffer_id, bitstream_id, gfx::Rect(frame_buffer_size_), false); | 173 Picture(buffer_id, bitstream_id, gfx::Rect(frame_buffer_size_), |
| 174 gfx::ColorSpace(), false); |
174 client_->PictureReady(picture); | 175 client_->PictureReady(picture); |
175 // Bitstream no longer needed. | 176 // Bitstream no longer needed. |
176 client_->NotifyEndOfBitstreamBuffer(bitstream_id); | 177 client_->NotifyEndOfBitstreamBuffer(bitstream_id); |
177 if (flushing_ && queued_bitstream_ids_.empty()) { | 178 if (flushing_ && queued_bitstream_ids_.empty()) { |
178 flushing_ = false; | 179 flushing_ = false; |
179 client_->NotifyFlushDone(); | 180 client_->NotifyFlushDone(); |
180 } | 181 } |
181 } | 182 } |
182 } | 183 } |
183 | 184 |
184 } // namespace media | 185 } // namespace media |
OLD | NEW |