Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 497db8bf authored by Pannag Sanketi's avatar Pannag Sanketi
Browse files

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
parent dedf1b27
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -198,7 +198,7 @@ sp<Surface> Surface_getSurface(JNIEnv* env, jobject clazz) {
    return surface;
}

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