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

Unified Diff: media/capture/video/android/video_capture_device_factory_android.cc

Issue 2237943002: Remove now-unnecessary .obj() in Java method calls. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@switch-context
Patch Set: Rebase *again* :( 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/capture/video/android/video_capture_device_android.cc ('k') | media/midi/midi_device_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/capture/video/android/video_capture_device_factory_android.cc
diff --git a/media/capture/video/android/video_capture_device_factory_android.cc b/media/capture/video/android/video_capture_device_factory_android.cc
index 84ff433373d950a9ba5daf306ba8689055d0d99e..5fb751680683a3c58a1914c72f1a687b13b6a4bd 100644
--- a/media/capture/video/android/video_capture_device_factory_android.cc
+++ b/media/capture/video/android/video_capture_device_factory_android.cc
@@ -108,7 +108,7 @@ void VideoCaptureDeviceFactoryAndroid::GetSupportedFormats(
VideoPixelFormat pixel_format =
media::PIXEL_FORMAT_UNKNOWN;
switch (media::Java_VideoCaptureFactory_getCaptureFormatPixelFormat(
- env, format.obj())) {
+ env, format)) {
case VideoCaptureDeviceAndroid::ANDROID_IMAGE_FORMAT_YV12:
pixel_format = media::PIXEL_FORMAT_YV12;
break;
@@ -119,12 +119,11 @@ void VideoCaptureDeviceFactoryAndroid::GetSupportedFormats(
continue;
}
VideoCaptureFormat capture_format(
- gfx::Size(media::Java_VideoCaptureFactory_getCaptureFormatWidth(
- env, format.obj()),
- media::Java_VideoCaptureFactory_getCaptureFormatHeight(
- env, format.obj())),
- media::Java_VideoCaptureFactory_getCaptureFormatFramerate(env,
- format.obj()),
+ gfx::Size(
+ media::Java_VideoCaptureFactory_getCaptureFormatWidth(env, format),
+ media::Java_VideoCaptureFactory_getCaptureFormatHeight(env,
+ format)),
+ media::Java_VideoCaptureFactory_getCaptureFormatFramerate(env, format),
pixel_format);
capture_formats->push_back(capture_format);
DVLOG(1) << device.display_name << " "
« no previous file with comments | « media/capture/video/android/video_capture_device_android.cc ('k') | media/midi/midi_device_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698