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 #ifndef MEDIA_BASE_ANDROID_VIDEO_DECODER_JOB_H_ | 5 #ifndef MEDIA_BASE_ANDROID_VIDEO_DECODER_JOB_H_ |
6 #define MEDIA_BASE_ANDROID_VIDEO_DECODER_JOB_H_ | 6 #define MEDIA_BASE_ANDROID_VIDEO_DECODER_JOB_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 | 9 |
10 #include "media/base/android/media_decoder_job.h" | 10 #include "media/base/android/media_decoder_job.h" |
(...skipping 30 matching lines...) Expand all Loading... |
41 VideoDecoderJob(scoped_ptr<VideoCodecBridge> video_codec_bridge, | 41 VideoDecoderJob(scoped_ptr<VideoCodecBridge> video_codec_bridge, |
42 const base::Closure& request_data_cb, | 42 const base::Closure& request_data_cb, |
43 const base::Closure& request_resources_cb, | 43 const base::Closure& request_resources_cb, |
44 const base::Closure& release_resources_cb); | 44 const base::Closure& release_resources_cb); |
45 | 45 |
46 // MediaDecoderJob implementation. | 46 // MediaDecoderJob implementation. |
47 virtual void ReleaseOutputBuffer( | 47 virtual void ReleaseOutputBuffer( |
48 int output_buffer_index, | 48 int output_buffer_index, |
49 size_t size, | 49 size_t size, |
50 bool render_output, | 50 bool render_output, |
51 base::TimeDelta current_presentation_timestamp, | |
52 const ReleaseOutputCompletionCallback& callback) OVERRIDE; | 51 const ReleaseOutputCompletionCallback& callback) OVERRIDE; |
53 | 52 |
54 virtual bool ComputeTimeToRender() const OVERRIDE; | 53 virtual bool ComputeTimeToRender() const OVERRIDE; |
55 | 54 |
56 scoped_ptr<VideoCodecBridge> video_codec_bridge_; | 55 scoped_ptr<VideoCodecBridge> video_codec_bridge_; |
57 | 56 |
58 base::Closure release_resources_cb_; | 57 base::Closure release_resources_cb_; |
59 }; | 58 }; |
60 | 59 |
61 } // namespace media | 60 } // namespace media |
62 | 61 |
63 #endif // MEDIA_BASE_ANDROID_VIDEO_DECODER_JOB_H_ | 62 #endif // MEDIA_BASE_ANDROID_VIDEO_DECODER_JOB_H_ |
OLD | NEW |