Skip to content

Commit 497db8b

Browse files
committed
Making the setSurface non-static
The setSurface method can be used to set a java Surface object from a native Surface object. Making it non-static so that it can be accessed from other units as well. Change-Id: Id49b077ec0e7ad91cf10a4bd66938e238062408d
1 parent dedf1b2 commit 497db8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/jni/android_view_Surface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ sp<Surface> Surface_getSurface(JNIEnv* env, jobject clazz) {
198198
return surface;
199199
}
200200

201-
static void setSurface(JNIEnv* env, jobject clazz, const sp<Surface>& surface)
201+
void setSurface(JNIEnv* env, jobject clazz, const sp<Surface>& surface)
202202
{
203203
Surface* const p = (Surface*)env->GetIntField(clazz, so.surface);
204204
if (surface.get()) {

0 commit comments

Comments
 (0)