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

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

Issue 1816203003: Add an additional VDA::Flush() mode to return all allocated buffers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
Index: content/common/gpu/media/gpu_video_decode_accelerator.cc
diff --git a/content/common/gpu/media/gpu_video_decode_accelerator.cc b/content/common/gpu/media/gpu_video_decode_accelerator.cc
index 2bab173172258ee37150897fcf6ab5848ca0d954..b729141a83ff75c8fa7f5aba13adea211d6c6970 100644
--- a/content/common/gpu/media/gpu_video_decode_accelerator.cc
+++ b/content/common/gpu/media/gpu_video_decode_accelerator.cc
@@ -602,9 +602,9 @@ void GpuVideoDecodeAccelerator::OnReusePictureBuffer(
video_decode_accelerator_->ReusePictureBuffer(picture_buffer_id);
}
-void GpuVideoDecodeAccelerator::OnFlush() {
+void GpuVideoDecodeAccelerator::OnFlush(bool return_buffers) {
DCHECK(video_decode_accelerator_);
- video_decode_accelerator_->Flush();
+ video_decode_accelerator_->Flush(return_buffers);
}
void GpuVideoDecodeAccelerator::OnReset() {

Powered by Google App Engine
This is Rietveld 408576698