| 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 #import "media/base/mac/avfoundation_glue.h" | 5 #import "media/base/mac/avfoundation_glue.h" |
| 6 | 6 |
| 7 #include <dlfcn.h> | 7 #include <dlfcn.h> |
| 8 #include <stddef.h> |
| 8 | 9 |
| 9 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| 10 #include "base/lazy_instance.h" | 11 #include "base/lazy_instance.h" |
| 11 #include "base/mac/mac_util.h" | 12 #include "base/mac/mac_util.h" |
| 13 #include "base/macros.h" |
| 12 #include "base/metrics/histogram.h" | 14 #include "base/metrics/histogram.h" |
| 13 #include "base/trace_event/trace_event.h" | 15 #include "base/trace_event/trace_event.h" |
| 14 #include "media/base/media_switches.h" | 16 #include "media/base/media_switches.h" |
| 15 | 17 |
| 16 namespace { | 18 namespace { |
| 17 | 19 |
| 18 // Used for logging capture API usage. Classes are a partition. Elements in this | 20 // Used for logging capture API usage. Classes are a partition. Elements in this |
| 19 // enum should not be deleted or rearranged; the only permitted operation is to | 21 // enum should not be deleted or rearranged; the only permitted operation is to |
| 20 // add new elements before CAPTURE_API_MAX, that must be equal to the last item. | 22 // add new elements before CAPTURE_API_MAX, that must be equal to the last item. |
| 21 enum CaptureApi { | 23 enum CaptureApi { |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 @implementation AVCaptureDeviceInputGlue | 249 @implementation AVCaptureDeviceInputGlue |
| 248 | 250 |
| 249 + (CrAVCaptureDeviceInput*)deviceInputWithDevice:(CrAVCaptureDevice*)device | 251 + (CrAVCaptureDeviceInput*)deviceInputWithDevice:(CrAVCaptureDevice*)device |
| 250 error:(NSError**)outError { | 252 error:(NSError**)outError { |
| 251 return [[AVFoundationGlue::AVFoundationBundle() | 253 return [[AVFoundationGlue::AVFoundationBundle() |
| 252 classNamed:@"AVCaptureDeviceInput"] deviceInputWithDevice:device | 254 classNamed:@"AVCaptureDeviceInput"] deviceInputWithDevice:device |
| 253 error:outError]; | 255 error:outError]; |
| 254 } | 256 } |
| 255 | 257 |
| 256 @end // @implementation AVCaptureDeviceInputGlue | 258 @end // @implementation AVCaptureDeviceInputGlue |
| OLD | NEW |