| 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_), | 173 Picture(buffer_id, bitstream_id, gfx::Rect(frame_buffer_size_), false); |
| 174 gfx::ColorSpace(), false); | |
| 175 client_->PictureReady(picture); | 174 client_->PictureReady(picture); |
| 176 // Bitstream no longer needed. | 175 // Bitstream no longer needed. |
| 177 client_->NotifyEndOfBitstreamBuffer(bitstream_id); | 176 client_->NotifyEndOfBitstreamBuffer(bitstream_id); |
| 178 if (flushing_ && queued_bitstream_ids_.empty()) { | 177 if (flushing_ && queued_bitstream_ids_.empty()) { |
| 179 flushing_ = false; | 178 flushing_ = false; |
| 180 client_->NotifyFlushDone(); | 179 client_->NotifyFlushDone(); |
| 181 } | 180 } |
| 182 } | 181 } |
| 183 } | 182 } |
| 184 | 183 |
| 185 } // namespace media | 184 } // namespace media |
| OLD | NEW |