mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-11-18 07:23:24 +09:00
[Chore] (MG_Backend, MG_Backend/DirectGLES, MG_Backend/DirectVulkan, MG_Backend/MGPipe, MG_Backend/Record, MG_Benchmark/Buffer, MG_Benchmark/Container, MG_Benchmark/Driver, MG_Benchmark/Program, MG_Benchmark/ShaderCache, MG_Benchmark/Transpile, MG_Gbm, MG_Impl, MG_Impl/CGLImpl, MG_Impl/DyldInterpose, MG_Impl/EGLImpl, MG_Impl/GLImpl, MG_Impl/GLXImpl, MG_Impl/NSOpenGLImpl, MG_Impl/Pipe, MG_Impl/WGLImpl, MG_IntegrationTest, MG_IntegrationTest/Harness, MG_IntegrationTest/Scenarios, MG_Pipe, MG_Remote, MG_Remote/Client, MG_Remote/Protocol, MG_Remote/Server, MG_Remote/Transport, MG_Remote/Wire, MG_State/EGLState, MG_State/GLState, MG_Test, MG_Test/Backend, MG_Test/BackendLoader, MG_Test/Buffer, MG_Test/EGLState, MG_Test/Framebuffer, MG_Test/Gbm, MG_Test/Pipe, MG_Test/Pipeline, MG_Test/Program, MG_Test/Query, MG_Test/SelfTest, MG_Test/ShaderTranspiler, MG_Test/State, MG_Test/Swapchain, MG_Test/Texture, MG_Test/Util, MG_Test/VertexArray, MG_Test/Wire, MG_Util/Async, MG_Util/BackendLoaders, MG_Util/Converters, MG_Util/Damage, MG_Util/Debug, MG_Util/Math, MG_Util/Metrics, MG_Util/SelfTest, MG_Util/ShaderTranspiler, MG_Util/Texture, MG_Util/X11, MobileGL, scripts/data, tools/cts, tools/device_bench, tools/spikes, tools/trace_replay, tools/wgl-smoke): clang-format every C and C++ source
- Layout only: token streams match up to split literals, continuations and using order - The size totals fall, so the structure baseline is lowered
This commit is contained in:
@@ -95,7 +95,7 @@ namespace {
|
||||
} // namespace
|
||||
|
||||
extern "C" JNIEXPORT void JNICALL Java_top_mobilegl_plugin_MobileGLDisplayActivity_nativeInstallDisplay(JNIEnv* env,
|
||||
jclass clazz) {
|
||||
jclass clazz) {
|
||||
JavaVM* vm = nullptr;
|
||||
if (env->GetJavaVM(&vm) != JNI_OK) vm = nullptr;
|
||||
jmethodID onGeometryRequest = env->GetStaticMethodID(clazz, "onGeometryRequest", "(II)V");
|
||||
@@ -117,7 +117,7 @@ extern "C" JNIEXPORT void JNICALL Java_top_mobilegl_plugin_MobileGLDisplayActivi
|
||||
}
|
||||
|
||||
extern "C" JNIEXPORT jint JNICALL Java_top_mobilegl_plugin_MobileGLDisplayActivity_nativeServe(JNIEnv* env, jclass,
|
||||
jstring listen) {
|
||||
jstring listen) {
|
||||
if (listen == nullptr) return mobilegl_server_serve_inprocess(nullptr);
|
||||
const char* endpoint = env->GetStringUTFChars(listen, nullptr);
|
||||
if (endpoint == nullptr) return 71; // OutOfMemoryError pending
|
||||
@@ -147,13 +147,13 @@ extern "C" JNIEXPORT jboolean JNICALL Java_top_mobilegl_plugin_MobileGLDisplayAc
|
||||
}
|
||||
|
||||
extern "C" JNIEXPORT jstring JNICALL Java_top_mobilegl_plugin_MobileGLDisplayActivity_nativeDetachWindow(JNIEnv* env,
|
||||
jclass) {
|
||||
jclass) {
|
||||
const ServerWindowDetach detached = ServerDisplayInstance().Detach();
|
||||
return env->NewStringUTF(ServerWindowDetachName(detached));
|
||||
}
|
||||
|
||||
extern "C" JNIEXPORT void JNICALL Java_top_mobilegl_plugin_MobileGLDisplayActivity_nativeUninstallDisplay(JNIEnv* env,
|
||||
jclass) {
|
||||
jclass) {
|
||||
ServerDisplayInstance().Uninstall();
|
||||
const std::lock_guard<std::mutex> lock(g_upcallMutex);
|
||||
if (g_activityClass != nullptr) env->DeleteGlobalRef(g_activityClass);
|
||||
|
||||
Reference in New Issue
Block a user