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

Side by Side Diff: content/renderer/media/rtc_video_renderer.h

Issue 955253002: Add metadata to media::VideoFrame and plumb it through IPC/MediaStream. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tommi's nits addressed Created 5 years, 9 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_RENDERER_MEDIA_RTC_VIDEO_RENDERER_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_RTC_VIDEO_RENDERER_H_
6 #define CONTENT_RENDERER_MEDIA_RTC_VIDEO_RENDERER_H_ 6 #define CONTENT_RENDERER_MEDIA_RTC_VIDEO_RENDERER_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 ~RTCVideoRenderer() override; 48 ~RTCVideoRenderer() override;
49 49
50 private: 50 private:
51 enum State { 51 enum State {
52 STARTED, 52 STARTED,
53 PAUSED, 53 PAUSED,
54 STOPPED, 54 STOPPED,
55 }; 55 };
56 56
57 void OnVideoFrame(const scoped_refptr<media::VideoFrame>& frame, 57 void OnVideoFrame(const scoped_refptr<media::VideoFrame>& frame,
58 const media::VideoCaptureFormat& format,
59 const base::TimeTicks& estimated_capture_time); 58 const base::TimeTicks& estimated_capture_time);
60 59
61 // VideoTrackSink implementation. Called on the main thread. 60 // VideoTrackSink implementation. Called on the main thread.
62 void OnReadyStateChanged( 61 void OnReadyStateChanged(
63 blink::WebMediaStreamSource::ReadyState state) override; 62 blink::WebMediaStreamSource::ReadyState state) override;
64 63
65 void RenderSignalingFrame(); 64 void RenderSignalingFrame();
66 65
67 base::Closure error_cb_; 66 base::Closure error_cb_;
68 RepaintCB repaint_cb_; 67 RepaintCB repaint_cb_;
69 scoped_refptr<base::MessageLoopProxy> message_loop_proxy_; 68 scoped_refptr<base::MessageLoopProxy> message_loop_proxy_;
70 State state_; 69 State state_;
71 gfx::Size frame_size_; 70 gfx::Size frame_size_;
72 blink::WebMediaStreamTrack video_track_; 71 blink::WebMediaStreamTrack video_track_;
73 base::WeakPtrFactory<RTCVideoRenderer> weak_factory_; 72 base::WeakPtrFactory<RTCVideoRenderer> weak_factory_;
74 73
75 DISALLOW_COPY_AND_ASSIGN(RTCVideoRenderer); 74 DISALLOW_COPY_AND_ASSIGN(RTCVideoRenderer);
76 }; 75 };
77 76
78 } // namespace content 77 } // namespace content
79 78
80 #endif // CONTENT_RENDERER_MEDIA_RTC_VIDEO_RENDERER_H_ 79 #endif // CONTENT_RENDERER_MEDIA_RTC_VIDEO_RENDERER_H_
OLDNEW
« no previous file with comments | « content/renderer/media/mock_media_stream_video_source.cc ('k') | content/renderer/media/rtc_video_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698