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

Unified Diff: media/filters/omx_video_decode_engine.cc

Issue 3030013: preparation for recycling buffer, patch 2 (Closed)
Patch Set: fix layout test Created 10 years, 4 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/omx_video_decode_engine.h ('k') | media/filters/omx_video_decoder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/omx_video_decode_engine.cc
diff --git a/media/filters/omx_video_decode_engine.cc b/media/filters/omx_video_decode_engine.cc
index db5b40238de78cfbf43cde2e716147371fc1fc6d..5e26bfa9a7c02633b2627ff097219928716a3a97 100644
--- a/media/filters/omx_video_decode_engine.cc
+++ b/media/filters/omx_video_decode_engine.cc
@@ -255,6 +255,17 @@ void OmxVideoDecodeEngine::PortFlushDone(int port) {
ComponentFlushDone();
}
+void OmxVideoDecodeEngine::Seek(Task* done_cb) {
+ message_loop_->PostTask(FROM_HERE,
+ NewRunnableMethod(this, &OmxVideoDecodeEngine::SeekTask, done_cb));
+}
+
+void OmxVideoDecodeEngine::SeekTask(Task* done_cb) {
+ DCHECK_EQ(message_loop_, MessageLoop::current());
+ AutoTaskRunner done_runner(done_cb);
+ // TODO(jiesun): add real logic here.
+}
+
VideoFrame::Format OmxVideoDecodeEngine::GetSurfaceFormat() const {
// TODO(jiesun): Both OmxHeaderType and EGLImage surface type could have
// different surface formats.
@@ -671,6 +682,10 @@ void OmxVideoDecodeEngine::FillThisBuffer(
}
}
+bool OmxVideoDecodeEngine::ProvidesBuffer() const {
+ return !uses_egl_image_;
+}
+
// Reconfigure port
void OmxVideoDecodeEngine::OnPortSettingsChangedRun(int port,
OMX_INDEXTYPE index) {
« no previous file with comments | « media/filters/omx_video_decode_engine.h ('k') | media/filters/omx_video_decoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698