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

Side by Side Diff: media/base/mac/avfoundation_glue.mm

Issue 518313003: Move Mac media glue code from media/video/capture/mac to media/base/mac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move media glue code back to base/mac and add suitable rules in build files to compile the code for… Created 6 years, 3 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 #import "media/video/capture/mac/avfoundation_glue.h" 5 #import "media/base/mac/avfoundation_glue.h"
6 6
7 #include <dlfcn.h> 7 #include <dlfcn.h>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
11 #include "base/mac/mac_util.h" 11 #include "base/mac/mac_util.h"
12 #include "base/metrics/field_trial.h" 12 #include "base/metrics/field_trial.h"
13 #include "media/base/media_switches.h" 13 #include "media/base/media_switches.h"
14 14
15 namespace { 15 namespace {
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 @implementation AVCaptureDeviceInputGlue 212 @implementation AVCaptureDeviceInputGlue
213 213
214 + (CrAVCaptureDeviceInput*)deviceInputWithDevice:(CrAVCaptureDevice*)device 214 + (CrAVCaptureDeviceInput*)deviceInputWithDevice:(CrAVCaptureDevice*)device
215 error:(NSError**)outError { 215 error:(NSError**)outError {
216 return [[AVFoundationGlue::AVFoundationBundle() 216 return [[AVFoundationGlue::AVFoundationBundle()
217 classNamed:@"AVCaptureDeviceInput"] deviceInputWithDevice:device 217 classNamed:@"AVCaptureDeviceInput"] deviceInputWithDevice:device
218 error:outError]; 218 error:outError];
219 } 219 }
220 220
221 @end // @implementation AVCaptureDeviceInputGlue 221 @end // @implementation AVCaptureDeviceInputGlue
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698