OLD | NEW |
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/rtc_video_encoder.h" | 5 #include "content/renderer/media/rtc_video_encoder.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/location.h" | 8 #include "base/location.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/memory/scoped_vector.h" | 10 #include "base/memory/scoped_vector.h" |
11 #include "base/message_loop/message_loop_proxy.h" | 11 #include "base/message_loop/message_loop_proxy.h" |
12 #include "base/metrics/histogram.h" | 12 #include "base/metrics/histogram.h" |
13 #include "base/rand_util.h" | 13 #include "base/rand_util.h" |
14 #include "base/synchronization/waitable_event.h" | 14 #include "base/synchronization/waitable_event.h" |
15 #include "media/base/bitstream_buffer.h" | 15 #include "media/base/bitstream_buffer.h" |
16 #include "media/base/video_frame.h" | 16 #include "media/base/video_frame.h" |
17 #include "media/base/video_util.h" | 17 #include "media/base/video_util.h" |
18 #include "media/filters/gpu_video_accelerator_factories.h" | |
19 #include "media/filters/h264_parser.h" | 18 #include "media/filters/h264_parser.h" |
| 19 #include "media/renderers/gpu_video_accelerator_factories.h" |
20 #include "media/video/video_encode_accelerator.h" | 20 #include "media/video/video_encode_accelerator.h" |
21 #include "third_party/webrtc/system_wrappers/interface/tick_util.h" | 21 #include "third_party/webrtc/system_wrappers/interface/tick_util.h" |
22 | 22 |
23 #define NOTIFY_ERROR(x) \ | 23 #define NOTIFY_ERROR(x) \ |
24 do { \ | 24 do { \ |
25 DLOG(ERROR) << "calling NotifyError(): " << x; \ | 25 DLOG(ERROR) << "calling NotifyError(): " << x; \ |
26 NotifyError(x); \ | 26 NotifyError(x); \ |
27 } while (0) | 27 } while (0) |
28 | 28 |
29 namespace content { | 29 namespace content { |
(...skipping 743 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
773 UMA_HISTOGRAM_BOOLEAN("Media.RTCVideoEncoderInitEncodeSuccess", | 773 UMA_HISTOGRAM_BOOLEAN("Media.RTCVideoEncoderInitEncodeSuccess", |
774 init_retval == WEBRTC_VIDEO_CODEC_OK); | 774 init_retval == WEBRTC_VIDEO_CODEC_OK); |
775 if (init_retval == WEBRTC_VIDEO_CODEC_OK) { | 775 if (init_retval == WEBRTC_VIDEO_CODEC_OK) { |
776 UMA_HISTOGRAM_ENUMERATION("Media.RTCVideoEncoderProfile", | 776 UMA_HISTOGRAM_ENUMERATION("Media.RTCVideoEncoderProfile", |
777 profile, | 777 profile, |
778 media::VIDEO_CODEC_PROFILE_MAX + 1); | 778 media::VIDEO_CODEC_PROFILE_MAX + 1); |
779 } | 779 } |
780 } | 780 } |
781 | 781 |
782 } // namespace content | 782 } // namespace content |
OLD | NEW |