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

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

Issue 2764633002: cc/paint: Remove cc::PaintSurface. (Closed)
Patch Set: fix for relanding Created 3 years, 8 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 "cc/paint/paint_surface.h" 13 #include "cc/paint/skia_paint_canvas.h"
14 #include "content/renderer/media/webrtc/webrtc_video_frame_adapter.h" 14 #include "content/renderer/media/webrtc/webrtc_video_frame_adapter.h"
15 #include "content/renderer/render_thread_impl.h" 15 #include "content/renderer/render_thread_impl.h"
16 #include "media/base/timestamp_constants.h" 16 #include "media/base/timestamp_constants.h"
17 #include "media/base/video_util.h" 17 #include "media/base/video_util.h"
18 #include "media/renderers/skcanvas_video_renderer.h" 18 #include "media/renderers/skcanvas_video_renderer.h"
19 #include "services/ui/public/cpp/gpu/context_provider_command_buffer.h" 19 #include "services/ui/public/cpp/gpu/context_provider_command_buffer.h"
20 #include "skia/ext/platform_canvas.h" 20 #include "skia/ext/platform_canvas.h"
21 #include "third_party/libyuv/include/libyuv/convert.h" 21 #include "third_party/libyuv/include/libyuv/convert.h"
22 #include "third_party/libyuv/include/libyuv/convert_from.h" 22 #include "third_party/libyuv/include/libyuv/convert_from.h"
23 #include "third_party/libyuv/include/libyuv/scale.h" 23 #include "third_party/libyuv/include/libyuv/scale.h"
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 // just use what is provided. 346 // just use what is provided.
347 // Use the desired format as the best format. 347 // Use the desired format as the best format.
348 best_format->width = desired.width; 348 best_format->width = desired.width;
349 best_format->height = desired.height; 349 best_format->height = desired.height;
350 best_format->fourcc = cricket::FOURCC_I420; 350 best_format->fourcc = cricket::FOURCC_I420;
351 best_format->interval = desired.interval; 351 best_format->interval = desired.interval;
352 return true; 352 return true;
353 } 353 }
354 354
355 } // namespace content 355 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698