OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/base/android/video_decoder_job.h" | 5 #include "media/base/android/video_decoder_job.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/lazy_instance.h" | 8 #include "base/lazy_instance.h" |
9 #include "base/threading/thread.h" | 9 #include "base/threading/thread.h" |
10 #include "media/base/android/media_codec_bridge.h" | 10 #include "media/base/android/media_codec_bridge.h" |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 VideoDecoderJob::~VideoDecoderJob() { | 58 VideoDecoderJob::~VideoDecoderJob() { |
59 release_resources_cb_.Run(); | 59 release_resources_cb_.Run(); |
60 } | 60 } |
61 | 61 |
62 void VideoDecoderJob::ReleaseOutputBuffer( | 62 void VideoDecoderJob::ReleaseOutputBuffer( |
63 int output_buffer_index, | 63 int output_buffer_index, |
64 size_t size, | 64 size_t size, |
65 bool render_output, | 65 bool render_output, |
66 const ReleaseOutputCompletionCallback& callback) { | 66 const ReleaseOutputCompletionCallback& callback) { |
67 video_codec_bridge_->ReleaseOutputBuffer(output_buffer_index, render_output); | 67 video_codec_bridge_->ReleaseOutputBuffer(output_buffer_index, render_output); |
68 callback.Run(0u); | 68 callback.Run(0u, 0, base::TimeTicks()); |
69 } | 69 } |
70 | 70 |
71 bool VideoDecoderJob::ComputeTimeToRender() const { | 71 bool VideoDecoderJob::ComputeTimeToRender() const { |
72 return true; | 72 return true; |
73 } | 73 } |
74 | 74 |
75 } // namespace media | 75 } // namespace media |
OLD | NEW |