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

Side by Side Diff: chromecast/renderer/media/media_pipeline_proxy.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_RENDERER_MEDIA_MEDIA_PIPELINE_PROXY_H_ 5 #ifndef CHROMECAST_RENDERER_MEDIA_MEDIA_PIPELINE_PROXY_H_
6 #define CHROMECAST_RENDERER_MEDIA_MEDIA_PIPELINE_PROXY_H_ 6 #define CHROMECAST_RENDERER_MEDIA_MEDIA_PIPELINE_PROXY_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 const ::media::AudioDecoderConfig& config, 43 const ::media::AudioDecoderConfig& config,
44 scoped_ptr<CodedFrameProvider> frame_provider, 44 scoped_ptr<CodedFrameProvider> frame_provider,
45 const ::media::PipelineStatusCB& status_cb) override; 45 const ::media::PipelineStatusCB& status_cb) override;
46 void InitializeVideo( 46 void InitializeVideo(
47 const ::media::VideoDecoderConfig& config, 47 const ::media::VideoDecoderConfig& config,
48 scoped_ptr<CodedFrameProvider> frame_provider, 48 scoped_ptr<CodedFrameProvider> frame_provider,
49 const ::media::PipelineStatusCB& status_cb) override; 49 const ::media::PipelineStatusCB& status_cb) override;
50 void StartPlayingFrom(base::TimeDelta time) override; 50 void StartPlayingFrom(base::TimeDelta time) override;
51 void Flush(const ::media::PipelineStatusCB& status_cb) override; 51 void Flush(const ::media::PipelineStatusCB& status_cb) override;
52 void Stop() override; 52 void Stop() override;
53 void SetPlaybackRate(float playback_rate) override; 53 void SetPlaybackRate(double playback_rate) override;
54 54
55 private: 55 private:
56 void OnProxyFlushDone(const ::media::PipelineStatusCB& status_cb, 56 void OnProxyFlushDone(const ::media::PipelineStatusCB& status_cb,
57 ::media::PipelineStatus status); 57 ::media::PipelineStatus status);
58 58
59 base::ThreadChecker thread_checker_; 59 base::ThreadChecker thread_checker_;
60 60
61 scoped_refptr<base::MessageLoopProxy> io_message_loop_proxy_; 61 scoped_refptr<base::MessageLoopProxy> io_message_loop_proxy_;
62 62
63 const int render_frame_id_; 63 const int render_frame_id_;
(...skipping 12 matching lines...) Expand all
76 base::WeakPtr<MediaPipelineProxy> weak_this_; 76 base::WeakPtr<MediaPipelineProxy> weak_this_;
77 base::WeakPtrFactory<MediaPipelineProxy> weak_factory_; 77 base::WeakPtrFactory<MediaPipelineProxy> weak_factory_;
78 78
79 DISALLOW_COPY_AND_ASSIGN(MediaPipelineProxy); 79 DISALLOW_COPY_AND_ASSIGN(MediaPipelineProxy);
80 }; 80 };
81 81
82 } // namespace media 82 } // namespace media
83 } // namespace chromecast 83 } // namespace chromecast
84 84
85 #endif // CHROMECAST_RENDERER_MEDIA_MEDIA_PIPELINE_PROXY_H_ 85 #endif // CHROMECAST_RENDERER_MEDIA_MEDIA_PIPELINE_PROXY_H_
OLDNEW
« no previous file with comments | « chromecast/media/cma/pipeline/media_pipeline_impl.cc ('k') | chromecast/renderer/media/media_pipeline_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698