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

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

Issue 23545029: EME: Handle NO_KEY and resume playback after key is added. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase only Created 7 years, 3 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
« no previous file with comments | « media/base/android/media_codec_bridge.cc ('k') | media/base/android/media_decoder_job.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_MEDIA_DECODER_JOB_H_ 5 #ifndef MEDIA_BASE_ANDROID_MEDIA_DECODER_JOB_H_
6 #define MEDIA_BASE_ANDROID_MEDIA_DECODER_JOB_H_ 6 #define MEDIA_BASE_ANDROID_MEDIA_DECODER_JOB_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 144
145 // Callback to run when the current Decode() operation completes. 145 // Callback to run when the current Decode() operation completes.
146 DecoderCallback decode_cb_; 146 DecoderCallback decode_cb_;
147 147
148 // The current access unit being processed. 148 // The current access unit being processed.
149 size_t access_unit_index_; 149 size_t access_unit_index_;
150 150
151 // Data received over IPC from last RequestData() operation. 151 // Data received over IPC from last RequestData() operation.
152 DemuxerData received_data_; 152 DemuxerData received_data_;
153 153
154 // The index of input buffer that can be used by QueueInputBuffer().
155 // If the index is uninitialized or invalid, it must be -1.
156 int input_buf_index_;
157
154 bool stop_decode_pending_; 158 bool stop_decode_pending_;
155 159
156 // Indicates that this object should be destroyed once the current 160 // Indicates that this object should be destroyed once the current
157 // Decode() has completed. This gets set when Release() gets called 161 // Decode() has completed. This gets set when Release() gets called
158 // while there is a decode in progress. 162 // while there is a decode in progress.
159 bool destroy_pending_; 163 bool destroy_pending_;
160 164
161 DISALLOW_IMPLICIT_CONSTRUCTORS(MediaDecoderJob); 165 DISALLOW_IMPLICIT_CONSTRUCTORS(MediaDecoderJob);
162 }; 166 };
163 167
164 } // namespace media 168 } // namespace media
165 169
166 #endif // MEDIA_BASE_ANDROID_MEDIA_DECODER_JOB_H_ 170 #endif // MEDIA_BASE_ANDROID_MEDIA_DECODER_JOB_H_
OLDNEW
« no previous file with comments | « media/base/android/media_codec_bridge.cc ('k') | media/base/android/media_decoder_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698