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

Unified Diff: content/common/gpu/client/gpu_video_decode_accelerator_host.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/client/gpu_video_decode_accelerator_host.cc
diff --git a/content/common/gpu/client/gpu_video_decode_accelerator_host.cc b/content/common/gpu/client/gpu_video_decode_accelerator_host.cc
index 1f0e3980d49dc5b0d4aaae1522bf4564f209d29a..43eb868928abdbd52203fe368a5ef23fd78f4a83 100644
--- a/content/common/gpu/client/gpu_video_decode_accelerator_host.cc
+++ b/content/common/gpu/client/gpu_video_decode_accelerator_host.cc
@@ -161,11 +161,11 @@ void GpuVideoDecodeAcceleratorHost::ReusePictureBuffer(
decoder_route_id_, picture_buffer_id));
}
-void GpuVideoDecodeAcceleratorHost::Flush() {
+void GpuVideoDecodeAcceleratorHost::Flush(bool return_buffers) {
DCHECK(CalledOnValidThread());
if (!channel_)
return;
- Send(new AcceleratedVideoDecoderMsg_Flush(decoder_route_id_));
+ Send(new AcceleratedVideoDecoderMsg_Flush(decoder_route_id_, return_buffers));
}
void GpuVideoDecodeAcceleratorHost::Reset() {

Powered by Google App Engine
This is Rietveld 408576698