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

Unified Diff: services/media/framework/parts/decoder.h

Issue 1692443002: Motown: Framework parts for mojo transport (producer/consumer/mediapipe) and control (audiotrack). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Added comments to AudioTrackController::SetRate regarding the proper way to implement it. Created 4 years, 10 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
« no previous file with comments | « services/media/framework/graph.cc ('k') | services/media/framework_create/decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/media/framework/parts/decoder.h
diff --git a/services/media/framework/parts/decoder.h b/services/media/framework/parts/decoder.h
index 0a9bf001adfa68c633fc5d1d20d64b606c8682d2..579ce37b2116061c39d7fd2954770745457cbb24 100644
--- a/services/media/framework/parts/decoder.h
+++ b/services/media/framework/parts/decoder.h
@@ -19,7 +19,7 @@ class Decoder : public Transform {
public:
// Creates a Decoder object for a given stream type.
static Result Create(
- const std::unique_ptr<StreamType>& stream_type,
+ const StreamType& stream_type,
std::shared_ptr<Decoder>* decoder_out);
~Decoder() override {}
@@ -29,7 +29,7 @@ class Decoder : public Transform {
protected:
// Initializes the decoder. Called by Decoder::Create.
- virtual Result Init(const std::unique_ptr<StreamType>& stream_type) = 0;
+ virtual Result Init(const StreamType& stream_type) = 0;
};
} // namespace media
« no previous file with comments | « services/media/framework/graph.cc ('k') | services/media/framework_create/decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698