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

Side by Side Diff: media/base/pipeline_impl.h

Issue 2366373003: Not for submission. fastSeek prototype. (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « media/base/pipeline.h ('k') | media/base/pipeline_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2016 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 MEDIA_BASE_PIPELINE_IMPL_H_ 5 #ifndef MEDIA_BASE_PIPELINE_IMPL_H_
6 #define MEDIA_BASE_PIPELINE_IMPL_H_ 6 #define MEDIA_BASE_PIPELINE_IMPL_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
13 #include "base/threading/thread_checker.h" 13 #include "base/threading/thread_checker.h"
14 #include "media/base/media_export.h" 14 #include "media/base/media_export.h"
15 #include "media/base/pipeline.h" 15 #include "media/base/pipeline.h"
16 #include "media/base/stream_position.h"
16 17
17 namespace base { 18 namespace base {
18 class SingleThreadTaskRunner; 19 class SingleThreadTaskRunner;
19 } 20 }
20 21
21 namespace media { 22 namespace media {
22 23
23 class MediaLog; 24 class MediaLog;
24 class TextRenderer; 25 class TextRenderer;
25 26
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 const scoped_refptr<base::SingleThreadTaskRunner>& media_task_runner, 72 const scoped_refptr<base::SingleThreadTaskRunner>& media_task_runner,
72 MediaLog* media_log); 73 MediaLog* media_log);
73 ~PipelineImpl() override; 74 ~PipelineImpl() override;
74 75
75 // Pipeline implementation. 76 // Pipeline implementation.
76 void Start(Demuxer* demuxer, 77 void Start(Demuxer* demuxer,
77 std::unique_ptr<Renderer> renderer, 78 std::unique_ptr<Renderer> renderer,
78 Client* client, 79 Client* client,
79 const PipelineStatusCB& seek_cb) override; 80 const PipelineStatusCB& seek_cb) override;
80 void Stop() override; 81 void Stop() override;
81 void Seek(base::TimeDelta time, const PipelineStatusCB& seek_cb) override; 82 void Seek(StreamPosition position, const PipelineStatusCB& seek_cb) override;
82 void Suspend(const PipelineStatusCB& suspend_cb) override; 83 void Suspend(const PipelineStatusCB& suspend_cb) override;
83 void Resume(std::unique_ptr<Renderer> renderer, 84 void Resume(std::unique_ptr<Renderer> renderer,
84 base::TimeDelta time, 85 base::TimeDelta time,
85 const PipelineStatusCB& seek_cb) override; 86 const PipelineStatusCB& seek_cb) override;
86 bool IsRunning() const override; 87 bool IsRunning() const override;
87 double GetPlaybackRate() const override; 88 double GetPlaybackRate() const override;
88 void SetPlaybackRate(double playback_rate) override; 89 void SetPlaybackRate(double playback_rate) override;
89 float GetVolume() const override; 90 float GetVolume() const override;
90 void SetVolume(float volume) override; 91 void SetVolume(float volume) override;
91 base::TimeDelta GetMediaTime() const override; 92 base::TimeDelta GetMediaTime() const override;
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 177
177 base::ThreadChecker thread_checker_; 178 base::ThreadChecker thread_checker_;
178 base::WeakPtrFactory<PipelineImpl> weak_factory_; 179 base::WeakPtrFactory<PipelineImpl> weak_factory_;
179 180
180 DISALLOW_COPY_AND_ASSIGN(PipelineImpl); 181 DISALLOW_COPY_AND_ASSIGN(PipelineImpl);
181 }; 182 };
182 183
183 } // namespace media 184 } // namespace media
184 185
185 #endif // MEDIA_BASE_PIPELINE_IMPL_H_ 186 #endif // MEDIA_BASE_PIPELINE_IMPL_H_
OLDNEW
« no previous file with comments | « media/base/pipeline.h ('k') | media/base/pipeline_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698