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

Side by Side Diff: content/renderer/media/gpu/rtc_video_decoder.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/gpu/rtc_video_decoder.h" 5 #include "content/renderer/media/gpu/rtc_video_decoder.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/metrics/histogram_macros.h" 12 #include "base/metrics/histogram_macros.h"
13 #include "base/numerics/safe_conversions.h" 13 #include "base/numerics/safe_conversions.h"
14 #include "base/synchronization/waitable_event.h" 14 #include "base/synchronization/waitable_event.h"
15 #include "base/task_runner_util.h" 15 #include "base/task_runner_util.h"
16 #include "content/renderer/media/webrtc/webrtc_video_frame_adapter.h" 16 #include "content/renderer/media/webrtc/webrtc_video_frame_adapter.h"
17 #include "gpu/command_buffer/common/mailbox_holder.h" 17 #include "gpu/command_buffer/common/mailbox_holder.h"
18 #include "media/base/bind_to_current_loop.h" 18 #include "media/base/bind_to_current_loop.h"
19 #include "media/renderers/gpu_video_accelerator_factories.h" 19 #include "media/renderers/gpu_video_accelerator_factories.h"
20 #include "third_party/skia/include/core/SkBitmap.h" 20 #include "third_party/skia/include/core/SkBitmap.h"
21 #include "third_party/webrtc/api/video/video_frame.h"
21 #include "third_party/webrtc/base/bind.h" 22 #include "third_party/webrtc/base/bind.h"
22 #include "third_party/webrtc/base/refcount.h" 23 #include "third_party/webrtc/base/refcount.h"
23 #include "third_party/webrtc/modules/video_coding/codecs/h264/include/h264.h" 24 #include "third_party/webrtc/modules/video_coding/codecs/h264/include/h264.h"
24 #include "third_party/webrtc/video_frame.h"
25 25
26 #if defined(OS_WIN) 26 #if defined(OS_WIN)
27 #include "base/command_line.h" 27 #include "base/command_line.h"
28 #include "base/win/windows_version.h" 28 #include "base/win/windows_version.h"
29 #include "content/public/common/content_switches.h" 29 #include "content/public/common/content_switches.h"
30 #endif // defined(OS_WIN) 30 #endif // defined(OS_WIN)
31 31
32 namespace content { 32 namespace content {
33 33
34 const int32_t RTCVideoDecoder::ID_LAST = 0x3FFFFFFF; 34 const int32_t RTCVideoDecoder::ID_LAST = 0x3FFFFFFF;
(...skipping 852 matching lines...) Expand 10 before | Expand all | Expand 10 after
887 } 887 }
888 888
889 void RTCVideoDecoder::ClearPendingBuffers() { 889 void RTCVideoDecoder::ClearPendingBuffers() {
890 // Delete WebRTC input buffers. 890 // Delete WebRTC input buffers.
891 for (const auto& pending_buffer : pending_buffers_) 891 for (const auto& pending_buffer : pending_buffers_)
892 delete[] pending_buffer.first._buffer; 892 delete[] pending_buffer.first._buffer;
893 pending_buffers_.clear(); 893 pending_buffers_.clear();
894 } 894 }
895 895
896 } // namespace content 896 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/BUILD.gn ('k') | content/renderer/media/webrtc/webrtc_video_capturer_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698