浏览代码

fix long overflow

/siyaoH-1.17-PlatformMessage
siyao 4 年前
当前提交
d04bd625
共有 2 个文件被更改,包括 8 次插入1 次删除
  1. 2
      engine/src/lib/ui/window/window.cc
  2. 7
      engine/src/shell/platform/unity/android/uiwidgets_system.h

2
engine/src/lib/ui/window/window.cc


Window_updateWindowMetricsCallback Window_updateWindowMetrics_;
typedef void (*Window_beginFrameCallback)(long microseconds);
typedef void (*Window_beginFrameCallback)(int64_t microseconds);
Window_beginFrameCallback Window_beginFrame_;
typedef void (*Window_drawFrameCallback)();

7
engine/src/shell/platform/unity/android/uiwidgets_system.h


#include "Unity/IUnityUIWidgets.h"
#include "flutter/fml/macros.h"
#include "runtime/mono_api.h"
#include <GLES2/gl2.h>
#include <EGL/egl.h>
namespace uiwidgets {

UIWIDGETS_CALLBACK(void) _WakeUp() { GetInstancePtr()->WakeUp(); }
UIWIDGETS_CALLBACK(void) _GfxWorkerCallback(int eventId, void* data) {
auto context = eglGetCurrentContext();
auto display = eglGetCurrentDisplay();
auto draw = eglGetCurrentSurface(EGL_DRAW);
auto read = eglGetCurrentSurface(EGL_READ);
eglMakeCurrent(display, draw, read, context);
}
void Update();

正在加载...
取消
保存