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

Side by Side Diff: chromecast/media/cma/pipeline/media_pipeline.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_H_ 5 #ifndef CHROMECAST_MEDIA_CMA_PIPELINE_MEDIA_PIPELINE_H_
6 #define CHROMECAST_MEDIA_CMA_PIPELINE_MEDIA_PIPELINE_H_ 6 #define CHROMECAST_MEDIA_CMA_PIPELINE_MEDIA_PIPELINE_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/time/time.h" 10 #include "base/time/time.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 const ::media::VideoDecoderConfig& config, 50 const ::media::VideoDecoderConfig& config,
51 scoped_ptr<CodedFrameProvider> frame_provider, 51 scoped_ptr<CodedFrameProvider> frame_provider,
52 const ::media::PipelineStatusCB& status_cb) = 0; 52 const ::media::PipelineStatusCB& status_cb) = 0;
53 53
54 // Control the media pipeline state machine. 54 // Control the media pipeline state machine.
55 virtual void StartPlayingFrom(base::TimeDelta time) = 0; 55 virtual void StartPlayingFrom(base::TimeDelta time) = 0;
56 virtual void Flush(const ::media::PipelineStatusCB& status_cb) = 0; 56 virtual void Flush(const ::media::PipelineStatusCB& status_cb) = 0;
57 virtual void Stop() = 0; 57 virtual void Stop() = 0;
58 58
59 // Set the playback rate. 59 // Set the playback rate.
60 virtual void SetPlaybackRate(float playback_rate) = 0; 60 virtual void SetPlaybackRate(double playback_rate) = 0;
61 61
62 private: 62 private:
63 DISALLOW_COPY_AND_ASSIGN(MediaPipeline); 63 DISALLOW_COPY_AND_ASSIGN(MediaPipeline);
64 }; 64 };
65 65
66 } // namespace media 66 } // namespace media
67 } // namespace chromecast 67 } // namespace chromecast
68 68
69 #endif // CHROMECAST_MEDIA_CMA_PIPELINE_MEDIA_PIPELINE_H_ 69 #endif // CHROMECAST_MEDIA_CMA_PIPELINE_MEDIA_PIPELINE_H_
OLDNEW
« no previous file with comments | « chromecast/media/cma/filters/cma_renderer.cc ('k') | chromecast/media/cma/pipeline/media_pipeline_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698