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

Unified Diff: chromecast/media/cma/backend/video_decoder_default.h

Issue 2583213003: [chromecast] Adds MediaSinkDefault. (Closed)
Patch Set: simple sink Created 3 years, 11 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: chromecast/media/cma/backend/video_decoder_default.h
diff --git a/chromecast/media/cma/backend/video_decoder_default.h b/chromecast/media/cma/backend/video_decoder_default.h
index b56a485df08678488e191d278ea6c88c24c0a84c..d91b1a2d02e890f03017816d1b3c15318165bf1c 100644
--- a/chromecast/media/cma/backend/video_decoder_default.h
+++ b/chromecast/media/cma/backend/video_decoder_default.h
@@ -5,21 +5,26 @@
#ifndef CHROMECAST_MEDIA_CMA_BACKEND_VIDEO_DECODER_DEFAULT_H_
#define CHROMECAST_MEDIA_CMA_BACKEND_VIDEO_DECODER_DEFAULT_H_
-#include <stdint.h>
+#include <memory>
#include "base/macros.h"
-#include "base/memory/weak_ptr.h"
+#include "base/time/time.h"
#include "chromecast/public/media/media_pipeline_backend.h"
namespace chromecast {
namespace media {
+class MediaSinkDefault;
+
class VideoDecoderDefault : public MediaPipelineBackend::VideoDecoder {
public:
VideoDecoderDefault();
~VideoDecoderDefault() override;
- int64_t last_push_pts() const { return last_push_pts_; }
+ void Start(base::TimeDelta start_pts);
+ void Stop();
+ void SetPlaybackRate(float rate);
+ base::TimeDelta GetCurrentPts();
// MediaPipelineBackend::VideoDecoder implementation:
void SetDelegate(Delegate* delegate) override;
@@ -29,12 +34,8 @@ class VideoDecoderDefault : public MediaPipelineBackend::VideoDecoder {
bool SetConfig(const VideoConfig& config) override;
private:
- void OnEndOfStream();
-
Delegate* delegate_;
- int64_t last_push_pts_;
- base::WeakPtrFactory<VideoDecoderDefault> weak_factory_;
-
+ std::unique_ptr<MediaSinkDefault> sink_;
DISALLOW_COPY_AND_ASSIGN(VideoDecoderDefault);
};
« no previous file with comments | « chromecast/media/cma/backend/media_sink_default.cc ('k') | chromecast/media/cma/backend/video_decoder_default.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698