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

Side by Side Diff: chromecast/media/cma/pipeline/media_pipeline_impl.h

Issue 1094783002: Switch to double for time calculations using playback rate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Making changes at chromecast side to fix trybots Created 5 years, 8 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CHROMECAST_MEDIA_CMA_PIPELINE_MEDIA_PIPELINE_IMPL_H_ 5 #ifndef CHROMECAST_MEDIA_CMA_PIPELINE_MEDIA_PIPELINE_IMPL_H_
6 #define CHROMECAST_MEDIA_CMA_PIPELINE_MEDIA_PIPELINE_IMPL_H_ 6 #define CHROMECAST_MEDIA_CMA_PIPELINE_MEDIA_PIPELINE_IMPL_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 const ::media::AudioDecoderConfig& config, 44 const ::media::AudioDecoderConfig& config,
45 scoped_ptr<CodedFrameProvider> frame_provider, 45 scoped_ptr<CodedFrameProvider> frame_provider,
46 const ::media::PipelineStatusCB& status_cb) override; 46 const ::media::PipelineStatusCB& status_cb) override;
47 void InitializeVideo( 47 void InitializeVideo(
48 const ::media::VideoDecoderConfig& config, 48 const ::media::VideoDecoderConfig& config,
49 scoped_ptr<CodedFrameProvider> frame_provider, 49 scoped_ptr<CodedFrameProvider> frame_provider,
50 const ::media::PipelineStatusCB& status_cb) override; 50 const ::media::PipelineStatusCB& status_cb) override;
51 void StartPlayingFrom(base::TimeDelta time) override; 51 void StartPlayingFrom(base::TimeDelta time) override;
52 void Flush(const ::media::PipelineStatusCB& status_cb) override; 52 void Flush(const ::media::PipelineStatusCB& status_cb) override;
53 void Stop() override; 53 void Stop() override;
54 void SetPlaybackRate(float playback_rate) override; 54 void SetPlaybackRate(double playback_rate) override;
55 55
56 AudioPipelineImpl* GetAudioPipelineImpl() const; 56 AudioPipelineImpl* GetAudioPipelineImpl() const;
57 VideoPipelineImpl* GetVideoPipelineImpl() const; 57 VideoPipelineImpl* GetVideoPipelineImpl() const;
58 58
59 void SetCdm(BrowserCdmCast* cdm); 59 void SetCdm(BrowserCdmCast* cdm);
60 60
61 private: 61 private:
62 void StateTransition(const ::media::PipelineStatusCB& status_cb, 62 void StateTransition(const ::media::PipelineStatusCB& status_cb,
63 ::media::PipelineStatus status); 63 ::media::PipelineStatus status);
64 64
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 base::WeakPtr<MediaPipelineImpl> weak_this_; 104 base::WeakPtr<MediaPipelineImpl> weak_this_;
105 base::WeakPtrFactory<MediaPipelineImpl> weak_factory_; 105 base::WeakPtrFactory<MediaPipelineImpl> weak_factory_;
106 106
107 DISALLOW_COPY_AND_ASSIGN(MediaPipelineImpl); 107 DISALLOW_COPY_AND_ASSIGN(MediaPipelineImpl);
108 }; 108 };
109 109
110 } // namespace media 110 } // namespace media
111 } // namespace chromecast 111 } // namespace chromecast
112 112
113 #endif // CHROMECAST_MEDIA_CMA_PIPELINE_MEDIA_PIPELINE_IMPL_H_ 113 #endif // CHROMECAST_MEDIA_CMA_PIPELINE_MEDIA_PIPELINE_IMPL_H_
OLDNEW
« no previous file with comments | « chromecast/media/cma/pipeline/media_pipeline.h ('k') | chromecast/media/cma/pipeline/media_pipeline_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698