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

Side by Side Diff: media/base/android/video_decoder_job.h

Issue 215783002: Fix an issue that audio and video may run out of sync (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressing acolwell's comments Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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,
51 const ReleaseOutputCompletionCallback& callback) OVERRIDE; 52 const ReleaseOutputCompletionCallback& callback) OVERRIDE;
52 53
53 virtual bool ComputeTimeToRender() const OVERRIDE; 54 virtual bool ComputeTimeToRender() const OVERRIDE;
54 55
55 scoped_ptr<VideoCodecBridge> video_codec_bridge_; 56 scoped_ptr<VideoCodecBridge> video_codec_bridge_;
56 57
57 base::Closure release_resources_cb_; 58 base::Closure release_resources_cb_;
58 }; 59 };
59 60
60 } // namespace media 61 } // namespace media
61 62
62 #endif // MEDIA_BASE_ANDROID_VIDEO_DECODER_JOB_H_ 63 #endif // MEDIA_BASE_ANDROID_VIDEO_DECODER_JOB_H_
OLDNEW
« no previous file with comments | « media/base/android/media_source_player_unittest.cc ('k') | media/base/android/video_decoder_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698