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

Commit f5461645 authored by AUDITYA BHATTARAM's avatar AUDITYA BHATTARAM
Browse files

Fix for OSS variant build errors.

Fix for OSS variant build errors.
USE_OPENGL_RENDERER is a flag defined in
our proprietary userspace. Using this flag
to fix the dependencies.

Change-Id: I705af74357c46a9fae267f256fb057aacb3af789
parent a7d293c9
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -392,6 +392,7 @@ static jint nativeGetHeight(JNIEnv* env, jclass clazz, jlong nativeObject) {
    return value;
}

#ifdef USE_OPENGL_RENDERER
namespace uirenderer {

using namespace android::uirenderer::renderthread;
@@ -435,6 +436,7 @@ static void destroy(JNIEnv* env, jclass clazz, jlong rendererPtr) {
}

} // uirenderer
#endif

// ----------------------------------------------------------------------------

@@ -466,11 +468,13 @@ static JNINativeMethod gSurfaceMethods[] = {
    {"nativeGetWidth", "(J)I", (void*)nativeGetWidth },
    {"nativeGetHeight", "(J)I", (void*)nativeGetHeight },

    #ifdef USE_OPENGL_RENDERER
    // HWUI context
    {"nHwuiCreate", "(JJ)J", (void*) hwui::create },
    {"nHwuiSetSurface", "(JJ)V", (void*) hwui::setSurface },
    {"nHwuiDraw", "(J)V", (void*) hwui::draw },
    {"nHwuiDestroy", "(J)V", (void*) hwui::destroy },
    #endif
};

int register_android_view_Surface(JNIEnv* env)