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

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

Issue 1996763002: Make painting a single frame a permanent API on VideoRendererSink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments. Created 4 years, 7 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 | « chromecast/renderer/media/cma_renderer.cc ('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/macros.h" 9 #include "base/macros.h"
10 #include "base/time/default_tick_clock.h" 10 #include "base/time/default_tick_clock.h"
(...skipping 17 matching lines...) Expand all
28 // |new_frame_cb| will be called for each new frame received. 28 // |new_frame_cb| will be called for each new frame received.
29 NullVideoSink(bool clockless, 29 NullVideoSink(bool clockless,
30 base::TimeDelta interval, 30 base::TimeDelta interval,
31 const NewFrameCB& new_frame_cb, 31 const NewFrameCB& new_frame_cb,
32 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner); 32 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner);
33 ~NullVideoSink() override; 33 ~NullVideoSink() override;
34 34
35 // VideoRendererSink implementation. 35 // VideoRendererSink implementation.
36 void Start(RenderCallback* callback) override; 36 void Start(RenderCallback* callback) override;
37 void Stop() override; 37 void Stop() override;
38 void PaintFrameUsingOldRenderingPath( 38 void PaintSingleFrame(const scoped_refptr<VideoFrame>& frame) override;
39 const scoped_refptr<VideoFrame>& frame) override;
40 39
41 void set_tick_clock_for_testing(base::TickClock* tick_clock) { 40 void set_tick_clock_for_testing(base::TickClock* tick_clock) {
42 tick_clock_ = tick_clock; 41 tick_clock_ = tick_clock;
43 } 42 }
44 43
45 // Sets |stop_cb_|, which will be fired when Stop() is called. 44 // Sets |stop_cb_|, which will be fired when Stop() is called.
46 void set_stop_cb(const base::Closure& stop_cb) { 45 void set_stop_cb(const base::Closure& stop_cb) {
47 stop_cb_ = stop_cb; 46 stop_cb_ = stop_cb;
48 } 47 }
49 48
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 86
88 // Value passed to RenderCallback::Render(). 87 // Value passed to RenderCallback::Render().
89 bool background_render_; 88 bool background_render_;
90 89
91 DISALLOW_COPY_AND_ASSIGN(NullVideoSink); 90 DISALLOW_COPY_AND_ASSIGN(NullVideoSink);
92 }; 91 };
93 92
94 } // namespace media 93 } // namespace media
95 94
96 #endif // MEDIA_AUDIO_NULL_VIDEO_SINK_H_ 95 #endif // MEDIA_AUDIO_NULL_VIDEO_SINK_H_
OLDNEW
« no previous file with comments | « chromecast/renderer/media/cma_renderer.cc ('k') | media/base/null_video_sink.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698