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

Unified Diff: media/filters/video_frame_generator.cc

Issue 10261012: Fix VideoFrameGenerator so Flush() callback always runs after a pending Read() callback. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix unnecessary space Created 8 years, 8 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 | « media/filters/video_frame_generator.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/video_frame_generator.cc
diff --git a/media/filters/video_frame_generator.cc b/media/filters/video_frame_generator.cc
index 3141399c369924b3f35773ebd998c1b631bc33d3..38dbdecc0076593588bbe5980d65f7271175977b 100644
--- a/media/filters/video_frame_generator.cc
+++ b/media/filters/video_frame_generator.cc
@@ -39,6 +39,10 @@ void VideoFrameGenerator::Read(const ReadCB& read_cb) {
base::Bind(&VideoFrameGenerator::ReadOnDecoderThread, this, read_cb));
}
+void VideoFrameGenerator::Flush(const base::Closure& flush_cb) {
+ message_loop_proxy_->PostTask(FROM_HERE, flush_cb);
+}
+
const gfx::Size& VideoFrameGenerator::natural_size() {
return natural_size_;
}
« no previous file with comments | « media/filters/video_frame_generator.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698