Skip to content

Commit

Permalink
fix(renderer.h): drop abandoned stuff [no ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
twaik committed Dec 27, 2024
1 parent 90b0b9a commit 46e4db9
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions app/src/main/cpp/lorie/renderer.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,6 @@
#include <jni.h>
#include <android/hardware_buffer.h>

// X server is already linked to mesa so linking to Android's GLESv2 will confuse the linker.
// That is a reason why we should compile renderer as separate hared library with its own dependencies.
// In that case part of X server's api is unavailable,
// so we should pass addresses to all needed functions to the renderer lib.
typedef void (*renderer_message_func_type) (int type, int verb, const char *format, ...);
__unused void renderer_message_func(renderer_message_func_type function);

__unused int renderer_init(JNIEnv* env, int* legacy_drawing, uint8_t* flip);
__unused void renderer_set_buffer(JNIEnv* env, AHardwareBuffer* buffer);
__unused void renderer_set_window(JNIEnv* env, jobject surface, AHardwareBuffer* buffer);
Expand Down

0 comments on commit 46e4db9

Please sign in to comment.