| OLD | NEW |
| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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, | 58 const media::VideoCaptureFormat& format, |
| 59 const base::TimeTicks& estimated_capture_time); | 59 const base::TimeTicks& estimated_capture_time); |
| 60 | 60 |
| 61 // VideoTrackSink implementation. Called on the main thread. | 61 // VideoTrackSink implementation. Called on the main thread. |
| 62 virtual void OnReadyStateChanged( | 62 virtual void OnReadyStateChanged( |
| 63 blink::WebMediaStreamSource::ReadyState state) OVERRIDE; | 63 blink::WebMediaStreamSource::ReadyState state) OVERRIDE; |
| 64 virtual void OnEnabledChanged(bool enabled) OVERRIDE; | |
| 65 | 64 |
| 66 void RenderSignalingFrame(); | 65 void RenderSignalingFrame(); |
| 67 | 66 |
| 68 base::Closure error_cb_; | 67 base::Closure error_cb_; |
| 69 RepaintCB repaint_cb_; | 68 RepaintCB repaint_cb_; |
| 70 scoped_refptr<base::MessageLoopProxy> message_loop_proxy_; | 69 scoped_refptr<base::MessageLoopProxy> message_loop_proxy_; |
| 71 State state_; | 70 State state_; |
| 72 gfx::Size frame_size_; | 71 gfx::Size frame_size_; |
| 73 blink::WebMediaStreamTrack video_track_; | 72 blink::WebMediaStreamTrack video_track_; |
| 74 base::WeakPtrFactory<RTCVideoRenderer> weak_factory_; | 73 base::WeakPtrFactory<RTCVideoRenderer> weak_factory_; |
| 75 | 74 |
| 76 DISALLOW_COPY_AND_ASSIGN(RTCVideoRenderer); | 75 DISALLOW_COPY_AND_ASSIGN(RTCVideoRenderer); |
| 77 }; | 76 }; |
| 78 | 77 |
| 79 } // namespace content | 78 } // namespace content |
| 80 | 79 |
| 81 #endif // CONTENT_RENDERER_MEDIA_RTC_VIDEO_RENDERER_H_ | 80 #endif // CONTENT_RENDERER_MEDIA_RTC_VIDEO_RENDERER_H_ |
| OLD | NEW |