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); |
}; |