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

Side by Side Diff: media/capture/video/android/capture_jni_registrar.cc

Issue 2199913003: media: Remove unneeded RegisterNatives() call (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@jnireg1
Patch Set: rebase Created 4 years, 4 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "media/capture/video/android/capture_jni_registrar.h" 5 #include "media/capture/video/android/capture_jni_registrar.h"
6 6
7 #include "base/android/jni_android.h" 7 #include "base/android/jni_android.h"
8 #include "base/android/jni_registrar.h" 8 #include "base/android/jni_registrar.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10
11 #include "media/capture/video/android/photo_capabilities.h"
12 #include "media/capture/video/android/video_capture_device_android.h" 10 #include "media/capture/video/android/video_capture_device_android.h"
13 #include "media/capture/video/android/video_capture_device_factory_android.h"
14 11
15 namespace media { 12 namespace media {
16 13
17 static base::android::RegistrationMethod kCaptureRegisteredMethods[] = { 14 static base::android::RegistrationMethod kCaptureRegisteredMethods[] = {
18 {"PhotoCapabilities", PhotoCapabilities::RegisterPhotoCapabilities},
19 {"VideoCaptureDevice", 15 {"VideoCaptureDevice",
20 VideoCaptureDeviceAndroid::RegisterVideoCaptureDevice}, 16 VideoCaptureDeviceAndroid::RegisterVideoCaptureDevice},
21 {"VideoCaptureDeviceFactory",
22 VideoCaptureDeviceFactoryAndroid::RegisterVideoCaptureDeviceFactory},
23 }; 17 };
24 18
25 bool RegisterCaptureJni(JNIEnv* env) { 19 bool RegisterCaptureJni(JNIEnv* env) {
26 return base::android::RegisterNativeMethods( 20 return base::android::RegisterNativeMethods(
27 env, kCaptureRegisteredMethods, arraysize(kCaptureRegisteredMethods)); 21 env, kCaptureRegisteredMethods, arraysize(kCaptureRegisteredMethods));
28 } 22 }
29 23
30 } // namespace media 24 } // namespace media
OLDNEW
« no previous file with comments | « media/base/android/sdk_media_codec_bridge.cc ('k') | media/capture/video/android/photo_capabilities.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698