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

Side by Side Diff: content/renderer/media/webrtc/webrtc_video_capturer_adapter.cc

Issue 2628283003: Use new location of webrtc video frame headers, under webrtc/api. (Closed)
Patch Set: Add gn dependency on webrtc's video_frame_api. Created 3 years, 11 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/webrtc/webrtc_video_capturer_adapter.h" 5 #include "content/renderer/media/webrtc/webrtc_video_capturer_adapter.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/memory/aligned_memory.h" 8 #include "base/memory/aligned_memory.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/synchronization/waitable_event.h" 10 #include "base/synchronization/waitable_event.h"
11 #include "base/threading/thread_task_runner_handle.h" 11 #include "base/threading/thread_task_runner_handle.h"
12 #include "base/trace_event/trace_event.h" 12 #include "base/trace_event/trace_event.h"
13 #include "content/renderer/media/webrtc/webrtc_video_frame_adapter.h" 13 #include "content/renderer/media/webrtc/webrtc_video_frame_adapter.h"
14 #include "content/renderer/render_thread_impl.h" 14 #include "content/renderer/render_thread_impl.h"
15 #include "media/base/timestamp_constants.h" 15 #include "media/base/timestamp_constants.h"
16 #include "media/base/video_util.h" 16 #include "media/base/video_util.h"
17 #include "media/renderers/skcanvas_video_renderer.h" 17 #include "media/renderers/skcanvas_video_renderer.h"
18 #include "services/ui/public/cpp/gpu/context_provider_command_buffer.h" 18 #include "services/ui/public/cpp/gpu/context_provider_command_buffer.h"
19 #include "skia/ext/platform_canvas.h" 19 #include "skia/ext/platform_canvas.h"
20 #include "third_party/libyuv/include/libyuv/convert.h" 20 #include "third_party/libyuv/include/libyuv/convert.h"
21 #include "third_party/libyuv/include/libyuv/convert_from.h" 21 #include "third_party/libyuv/include/libyuv/convert_from.h"
22 #include "third_party/libyuv/include/libyuv/scale.h" 22 #include "third_party/libyuv/include/libyuv/scale.h"
23 #include "third_party/skia/include/core/SkSurface.h" 23 #include "third_party/skia/include/core/SkSurface.h"
24 #include "third_party/webrtc/common_video/rotation.h" 24 #include "third_party/webrtc/api/video/video_rotation.h"
25 25
26 namespace content { 26 namespace content {
27 27
28 namespace { 28 namespace {
29 29
30 // Empty method used for keeping a reference to the original media::VideoFrame. 30 // Empty method used for keeping a reference to the original media::VideoFrame.
31 // The reference to |frame| is kept in the closure that calls this method. 31 // The reference to |frame| is kept in the closure that calls this method.
32 void ReleaseOriginalFrame(const scoped_refptr<media::VideoFrame>& frame) { 32 void ReleaseOriginalFrame(const scoped_refptr<media::VideoFrame>& frame) {
33 } 33 }
34 34
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 // just use what is provided. 343 // just use what is provided.
344 // Use the desired format as the best format. 344 // Use the desired format as the best format.
345 best_format->width = desired.width; 345 best_format->width = desired.width;
346 best_format->height = desired.height; 346 best_format->height = desired.height;
347 best_format->fourcc = cricket::FOURCC_I420; 347 best_format->fourcc = cricket::FOURCC_I420;
348 best_format->interval = desired.interval; 348 best_format->interval = desired.interval;
349 return true; 349 return true;
350 } 350 }
351 351
352 } // namespace content 352 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/media/gpu/rtc_video_decoder.cc ('k') | content/renderer/media/webrtc/webrtc_video_frame_adapter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698