| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "media/filters/omx_video_decoder.h" | 5 #include "media/filters/omx_video_decoder.h" |
| 6 | 6 |
| 7 #include "base/callback.h" | 7 #include "base/callback.h" |
| 8 #include "base/waitable_event.h" | |
| 9 #include "media/base/callback.h" | 8 #include "media/base/callback.h" |
| 10 #include "media/base/factory.h" | 9 #include "media/base/factory.h" |
| 11 #include "media/base/filter_host.h" | 10 #include "media/base/filter_host.h" |
| 12 #include "media/base/limits.h" | 11 #include "media/base/limits.h" |
| 13 #include "media/ffmpeg/ffmpeg_common.h" | 12 #include "media/ffmpeg/ffmpeg_common.h" |
| 14 #include "media/filters/ffmpeg_interfaces.h" | 13 #include "media/filters/ffmpeg_interfaces.h" |
| 15 #include "media/filters/omx_video_decode_engine.h" | 14 #include "media/filters/omx_video_decode_engine.h" |
| 16 | 15 |
| 17 namespace media { | 16 namespace media { |
| 18 | 17 |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 // We simply delicate the buffer to the right message loop. | 177 // We simply delicate the buffer to the right message loop. |
| 179 scoped_refptr<Buffer> ref_buffer = buffer; | 178 scoped_refptr<Buffer> ref_buffer = buffer; |
| 180 DCHECK(omx_engine_.get()); | 179 DCHECK(omx_engine_.get()); |
| 181 message_loop()->PostTask( | 180 message_loop()->PostTask( |
| 182 FROM_HERE, | 181 FROM_HERE, |
| 183 NewRunnableMethod(omx_engine_.get(), | 182 NewRunnableMethod(omx_engine_.get(), |
| 184 &OmxVideoDecodeEngine::EmptyThisBuffer, ref_buffer)); | 183 &OmxVideoDecodeEngine::EmptyThisBuffer, ref_buffer)); |
| 185 } | 184 } |
| 186 | 185 |
| 187 } // namespace media | 186 } // namespace media |
| OLD | NEW |