| 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 #include "content/renderer/media/media_stream_video_renderer_sink.h" | 5 #include "content/renderer/media/media_stream_video_renderer_sink.h" |
| 6 | 6 |
| 7 #include "base/single_thread_task_runner.h" | 7 #include "base/single_thread_task_runner.h" |
| 8 #include "base/thread_task_runner_handle.h" | 8 #include "base/threading/thread_task_runner_handle.h" |
| 9 #include "base/trace_event/trace_event.h" | 9 #include "base/trace_event/trace_event.h" |
| 10 #include "media/base/bind_to_current_loop.h" | 10 #include "media/base/bind_to_current_loop.h" |
| 11 #include "media/base/video_frame.h" | 11 #include "media/base/video_frame.h" |
| 12 #include "media/base/video_frame_metadata.h" | 12 #include "media/base/video_frame_metadata.h" |
| 13 #include "media/base/video_util.h" | 13 #include "media/base/video_util.h" |
| 14 #include "media/renderers/gpu_video_accelerator_factories.h" | 14 #include "media/renderers/gpu_video_accelerator_factories.h" |
| 15 | 15 |
| 16 const int kMinFrameSize = 2; | 16 const int kMinFrameSize = 2; |
| 17 | 17 |
| 18 namespace content { | 18 namespace content { |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 scoped_refptr<media::VideoFrame> video_frame = | 146 scoped_refptr<media::VideoFrame> video_frame = |
| 147 media::VideoFrame::CreateBlackFrame(frame_size_); | 147 media::VideoFrame::CreateBlackFrame(frame_size_); |
| 148 video_frame->metadata()->SetBoolean(media::VideoFrameMetadata::END_OF_STREAM, | 148 video_frame->metadata()->SetBoolean(media::VideoFrameMetadata::END_OF_STREAM, |
| 149 true); | 149 true); |
| 150 video_frame->metadata()->SetTimeTicks( | 150 video_frame->metadata()->SetTimeTicks( |
| 151 media::VideoFrameMetadata::REFERENCE_TIME, base::TimeTicks::Now()); | 151 media::VideoFrameMetadata::REFERENCE_TIME, base::TimeTicks::Now()); |
| 152 OnVideoFrame(video_frame, base::TimeTicks()); | 152 OnVideoFrame(video_frame, base::TimeTicks()); |
| 153 } | 153 } |
| 154 | 154 |
| 155 } // namespace content | 155 } // namespace content |
| OLD | NEW |