Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(283)

Unified Diff: content/common/gpu/media/v4l2_slice_video_decode_accelerator.cc

Issue 923033002: VP8Parser: Fix calculation of DCT partition sizes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | media/filters/vp8_parser.cc » ('j') | media/filters/vp8_parser.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/media/v4l2_slice_video_decode_accelerator.cc
diff --git a/content/common/gpu/media/v4l2_slice_video_decode_accelerator.cc b/content/common/gpu/media/v4l2_slice_video_decode_accelerator.cc
index 80555f165ce14e0a849e6031539767e8ca2daad9..ac567b79c5ceb1d383c890d26fb13508336b7738 100644
--- a/content/common/gpu/media/v4l2_slice_video_decode_accelerator.cc
+++ b/content/common/gpu/media/v4l2_slice_video_decode_accelerator.cc
@@ -1268,7 +1268,10 @@ void V4L2SliceVideoDecodeAccelerator::FinishSurfaceSetChangeIfNeeded() {
DCHECK_EQ(state_, kIdle);
DCHECK(decoder_display_queue_.empty());
// All output buffers should've been returned from decoder and device by now.
- DCHECK_EQ(free_output_buffers_.size(), output_buffer_map_.size());
+ // The only remaining owner of surfaces may be display (client), and we will
+ // dismiss them when destroying output buffers below.
+ DCHECK_EQ(free_output_buffers_.size() + surfaces_at_display_.size(),
+ output_buffer_map_.size());
// Keep input queue running while we switch outputs.
if (!StopDevicePoll(true)) {
« no previous file with comments | « no previous file | media/filters/vp8_parser.cc » ('j') | media/filters/vp8_parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698