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

Side by Side Diff: talk/app/webrtc/java/jni/classreferenceholder.cc

Issue 1370013002: Fix the C++ SurfaceTextureHolder (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 2 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
« no previous file with comments | « no previous file | talk/app/webrtc/java/jni/surfacetexturehelper_jni.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * libjingle 2 * libjingle
3 * Copyright 2015 Google Inc. 3 * Copyright 2015 Google Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met: 6 * modification, are permitted provided that the following conditions are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright notice, 8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer. 9 * this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright notice, 10 * 2. Redistributions in binary form must reproduce the above copyright notice,
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 LoadClass(jni, "org/webrtc/CameraEnumerationAndroid"); 76 LoadClass(jni, "org/webrtc/CameraEnumerationAndroid");
77 LoadClass(jni, "org/webrtc/VideoCapturerAndroid"); 77 LoadClass(jni, "org/webrtc/VideoCapturerAndroid");
78 LoadClass(jni, "org/webrtc/VideoCapturerAndroid$NativeObserver"); 78 LoadClass(jni, "org/webrtc/VideoCapturerAndroid$NativeObserver");
79 LoadClass(jni, "org/webrtc/EglBase"); 79 LoadClass(jni, "org/webrtc/EglBase");
80 LoadClass(jni, "org/webrtc/MediaCodecVideoEncoder"); 80 LoadClass(jni, "org/webrtc/MediaCodecVideoEncoder");
81 LoadClass(jni, "org/webrtc/MediaCodecVideoEncoder$OutputBufferInfo"); 81 LoadClass(jni, "org/webrtc/MediaCodecVideoEncoder$OutputBufferInfo");
82 LoadClass(jni, "org/webrtc/MediaCodecVideoEncoder$VideoCodecType"); 82 LoadClass(jni, "org/webrtc/MediaCodecVideoEncoder$VideoCodecType");
83 LoadClass(jni, "org/webrtc/MediaCodecVideoDecoder"); 83 LoadClass(jni, "org/webrtc/MediaCodecVideoDecoder");
84 LoadClass(jni, "org/webrtc/MediaCodecVideoDecoder$DecoderOutputBufferInfo"); 84 LoadClass(jni, "org/webrtc/MediaCodecVideoDecoder$DecoderOutputBufferInfo");
85 LoadClass(jni, "org/webrtc/MediaCodecVideoDecoder$VideoCodecType"); 85 LoadClass(jni, "org/webrtc/MediaCodecVideoDecoder$VideoCodecType");
86 LoadClass(jni, "org/webrtc/SurfaceTextureHelper");
86 jclass j_egl_base_class = GetClass("org/webrtc/EglBase"); 87 jclass j_egl_base_class = GetClass("org/webrtc/EglBase");
87 jmethodID j_is_egl14_supported_method = jni->GetStaticMethodID( 88 jmethodID j_is_egl14_supported_method = jni->GetStaticMethodID(
88 j_egl_base_class, "isEGL14Supported", "()Z"); 89 j_egl_base_class, "isEGL14Supported", "()Z");
89 bool is_egl14_supported = jni->CallStaticBooleanMethod( 90 bool is_egl14_supported = jni->CallStaticBooleanMethod(
90 j_egl_base_class, j_is_egl14_supported_method); 91 j_egl_base_class, j_is_egl14_supported_method);
91 CHECK_EXCEPTION(jni); 92 CHECK_EXCEPTION(jni);
92 if (is_egl14_supported) { 93 if (is_egl14_supported) {
93 LoadClass(jni, "android/opengl/EGLContext"); 94 LoadClass(jni, "android/opengl/EGLContext");
94 } 95 }
95 #endif 96 #endif
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 RTC_CHECK(inserted) << "Duplicate class name: " << name; 143 RTC_CHECK(inserted) << "Duplicate class name: " << name;
143 } 144 }
144 145
145 // Returns a global reference guaranteed to be valid for the lifetime of the 146 // Returns a global reference guaranteed to be valid for the lifetime of the
146 // process. 147 // process.
147 jclass FindClass(JNIEnv* jni, const char* name) { 148 jclass FindClass(JNIEnv* jni, const char* name) {
148 return g_class_reference_holder->GetClass(name); 149 return g_class_reference_holder->GetClass(name);
149 } 150 }
150 151
151 } // namespace webrtc_jni 152 } // namespace webrtc_jni
OLDNEW
« no previous file with comments | « no previous file | talk/app/webrtc/java/jni/surfacetexturehelper_jni.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698