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

Unified Diff: content/common/gpu/media/fake_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/fake_video_decode_accelerator.cc
diff --git a/content/common/gpu/media/fake_video_decode_accelerator.cc b/content/common/gpu/media/fake_video_decode_accelerator.cc
index 230c4f34c86e48bbf2f73e852a7297cc4ae6c3af..e0fddeaf930fc69f6723b4b280ecd4c437400948 100644
--- a/content/common/gpu/media/fake_video_decode_accelerator.cc
+++ b/content/common/gpu/media/fake_video_decode_accelerator.cc
@@ -139,7 +139,7 @@ void FakeVideoDecodeAccelerator::ReusePictureBuffer(int32_t picture_buffer_id) {
weak_this_factory_.GetWeakPtr()));
}
-void FakeVideoDecodeAccelerator::Flush() {
+void FakeVideoDecodeAccelerator::Flush(bool return_buffers) {
kcwu 2016/03/22 09:47:42 how about adding DCHECK(!return_buffers) for VDAs
flushing_ = true;
child_task_runner_->PostTask(
FROM_HERE, base::Bind(&FakeVideoDecodeAccelerator::DoPictureReady,

Powered by Google App Engine
This is Rietveld 408576698