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

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

Issue 1188753002: media: Fix mojo pipeline integration tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: MEDIA_EXPORT Created 5 years, 6 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/BUILD.gn ('k') | media/base/null_video_sink.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_AUDIO_NULL_VIDEO_SINK_H_ 5 #ifndef MEDIA_AUDIO_NULL_VIDEO_SINK_H_
6 #define MEDIA_AUDIO_NULL_VIDEO_SINK_H_ 6 #define MEDIA_AUDIO_NULL_VIDEO_SINK_H_
7 7
8 #include "base/cancelable_callback.h" 8 #include "base/cancelable_callback.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/time/default_tick_clock.h" 10 #include "base/time/default_tick_clock.h"
11 #include "base/time/tick_clock.h" 11 #include "base/time/tick_clock.h"
12 #include "media/base/media_export.h"
12 #include "media/base/video_renderer_sink.h" 13 #include "media/base/video_renderer_sink.h"
13 14
14 namespace base { 15 namespace base {
15 class SingleThreadTaskRunner; 16 class SingleThreadTaskRunner;
16 } 17 }
17 18
18 namespace media { 19 namespace media {
19 20
20 class NullVideoSink : public VideoRendererSink { 21 class MEDIA_EXPORT NullVideoSink : public VideoRendererSink {
21 public: 22 public:
22 using NewFrameCB = base::Callback<void(const scoped_refptr<VideoFrame>&)>; 23 using NewFrameCB = base::Callback<void(const scoped_refptr<VideoFrame>&)>;
23 24
24 // Periodically calls |callback| every |interval| on |task_runner| once the 25 // Periodically calls |callback| every |interval| on |task_runner| once the
25 // sink has been started. If |clockless| is true, the RenderCallback will 26 // sink has been started. If |clockless| is true, the RenderCallback will
26 // be called back to back by repeated post tasks. Optionally, if specified, 27 // be called back to back by repeated post tasks. Optionally, if specified,
27 // |new_frame_cb| will be called for each new frame received. 28 // |new_frame_cb| will be called for each new frame received.
28 NullVideoSink(bool clockless, 29 NullVideoSink(bool clockless,
29 base::TimeDelta interval, 30 base::TimeDelta interval,
30 const NewFrameCB& new_frame_cb, 31 const NewFrameCB& new_frame_cb,
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 87
87 // Value passed to RenderCallback::Render(). 88 // Value passed to RenderCallback::Render().
88 bool background_render_; 89 bool background_render_;
89 90
90 DISALLOW_COPY_AND_ASSIGN(NullVideoSink); 91 DISALLOW_COPY_AND_ASSIGN(NullVideoSink);
91 }; 92 };
92 93
93 } // namespace media 94 } // namespace media
94 95
95 #endif // MEDIA_AUDIO_NULL_VIDEO_SINK_H_ 96 #endif // MEDIA_AUDIO_NULL_VIDEO_SINK_H_
OLDNEW
« no previous file with comments | « media/base/BUILD.gn ('k') | media/base/null_video_sink.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698