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

Unified Diff: media/filters/decoder_stream.h

Issue 2871503002: Remove ScopedVector from audio/video renderer related code in media/ (Closed)
Patch Set: Remove ScopedVector from audio/video render related code in media/ Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: media/filters/decoder_stream.h
diff --git a/media/filters/decoder_stream.h b/media/filters/decoder_stream.h
index 380eb114036e554a2e399dcb04cca85ba611b197..aee9d405930702c5009170a2fa8a7c9abc10a4d9 100644
--- a/media/filters/decoder_stream.h
+++ b/media/filters/decoder_stream.h
@@ -8,11 +8,12 @@
#include <deque>
#include <list>
#include <memory>
+#include <vector>
#include "base/callback.h"
#include "base/compiler_specific.h"
+#include "base/memory/ptr_util.h"
xhwang 2017/05/10 16:41:24 not needed?
xiaofengzhang 2017/05/11 06:34:43 Done.
#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_vector.h"
#include "base/memory/weak_ptr.h"
#include "media/base/audio_decoder.h"
#include "media/base/audio_timestamp_helper.h"
@@ -51,7 +52,8 @@ class MEDIA_EXPORT DecoderStream {
};
// Callback to create a list of decoders.
- using CreateDecodersCB = base::RepeatingCallback<ScopedVector<Decoder>()>;
+ using CreateDecodersCB =
+ base::RepeatingCallback<std::vector<std::unique_ptr<Decoder>>()>;
// Indicates completion of a DecoderStream initialization.
using InitCB = base::Callback<void(bool success)>;

Powered by Google App Engine
This is Rietveld 408576698