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

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

Issue 1083383005: Connect the new video rendering path to the compositor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@vra
Patch Set: Update LoginCustomFlags histogram. Created 5 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 | « media/base/media_switches.cc ('k') | media/base/test_helpers.h » ('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/md5.h" 9 #include "base/md5.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 43
44 void set_tick_clock_for_testing(base::TickClock* tick_clock) { 44 void set_tick_clock_for_testing(base::TickClock* tick_clock) {
45 tick_clock_ = tick_clock; 45 tick_clock_ = tick_clock;
46 } 46 }
47 47
48 // Sets |stop_cb_|, which will be fired when Stop() is called. 48 // Sets |stop_cb_|, which will be fired when Stop() is called.
49 void set_stop_cb(const base::Closure& stop_cb) { 49 void set_stop_cb(const base::Closure& stop_cb) {
50 stop_cb_ = stop_cb; 50 stop_cb_ = stop_cb;
51 } 51 }
52 52
53 bool is_started() const { return started_; }
54
53 private: 55 private:
54 // Task that periodically calls Render() to consume video data. 56 // Task that periodically calls Render() to consume video data.
55 void CallRender(); 57 void CallRender();
56 58
57 const bool clockless_; 59 const bool clockless_;
58 const base::TimeDelta interval_; 60 const base::TimeDelta interval_;
59 const NewFrameCB new_frame_cb_; 61 const NewFrameCB new_frame_cb_;
60 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; 62 scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
61 63
62 bool started_; 64 bool started_;
(...skipping 21 matching lines...) Expand all
84 86
85 // If set, called when Stop() is called. 87 // If set, called when Stop() is called.
86 base::Closure stop_cb_; 88 base::Closure stop_cb_;
87 89
88 DISALLOW_COPY_AND_ASSIGN(NullVideoSink); 90 DISALLOW_COPY_AND_ASSIGN(NullVideoSink);
89 }; 91 };
90 92
91 } // namespace media 93 } // namespace media
92 94
93 #endif // MEDIA_AUDIO_NULL_VIDEO_SINK_H_ 95 #endif // MEDIA_AUDIO_NULL_VIDEO_SINK_H_
OLDNEW
« no previous file with comments | « media/base/media_switches.cc ('k') | media/base/test_helpers.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698