Chromium Code Reviews| Index: content/common/gpu/media/video_decode_accelerator_unittest.cc |
| diff --git a/content/common/gpu/media/video_decode_accelerator_unittest.cc b/content/common/gpu/media/video_decode_accelerator_unittest.cc |
| index 8b89d049b9339115a642f008e93f3796be83eb12..c4d02dffa44e3e259658c2ccbb0b0d58d9e620c6 100644 |
| --- a/content/common/gpu/media/video_decode_accelerator_unittest.cc |
| +++ b/content/common/gpu/media/video_decode_accelerator_unittest.cc |
| @@ -546,7 +546,12 @@ void GLRenderingVDAClient::NotifyEndOfBitstreamBuffer( |
| // VaapiVideoDecodeAccelerator::FinishReset()). |
| ++num_done_bitstream_buffers_; |
| --outstanding_decodes_; |
| - if (decode_calls_per_second_ == 0) |
| + if (decode_calls_per_second_ == 0 |
| + // when decode speed is slow, a BitstreamBuffer is released after the |
|
Alexei Svitkine (slow)
2014/12/09 14:27:35
Nit: Comments should be full sentences.
|
| + // EOS-DecodeNextFragment(), |
| + // trigger DecodeNextFragment again (it will flush decode) |
| + || (encoded_data_next_pos_to_decode_ == encoded_data_.size() |
|
Alexei Svitkine (slow)
2014/12/09 14:27:36
Nit: When wrapping, operators (e.g. || and &&) sho
|
| + && outstanding_decodes_ == 0)) |
| DecodeNextFragment(); |
| } |