浏览代码

fix

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

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


void printf_console(const char* log, ...) {
va_list vl;
va_start(vl, log);
unity_uiwidgets_->printf_consolev(log, vl);
// unity_uiwidgets_->printf_consolev(log, vl);
va_end(vl);
}

FML_DISALLOW_COPY_AND_ASSIGN(UIWidgetsSystem);
private:
UIWIDGETS_CALLBACK(void) _Update() { GetInstancePtr()->Update(); }
UIWIDGETS_CALLBACK(void) _Update() {
GetInstancePtr()->Update();
}
UIWIDGETS_CALLBACK(void) _Wait(long max_duration) {
GetInstancePtr()->Wait(std::chrono::nanoseconds(max_duration));

8
engine/src/shell/platform/unity/gfx_worker_task_runner.cc


FML_DCHECK(uiwidgets_target_time_nanos <=
(uint64_t)fml::TimePoint::Now().ToEpochDelta().ToNanoseconds());
// UIWidgetsSystem::GetInstancePtr()->PostTaskToGfxWorker(
// [&on_task_expired = on_task_expired_, uiwidgets_task]() -> void {
// on_task_expired(&uiwidgets_task);
// });
UIWidgetsSystem::GetInstancePtr()->PostTaskToGfxWorker(
[&on_task_expired = on_task_expired_, uiwidgets_task]() -> void {
on_task_expired(&uiwidgets_task);
});
}
} // namespace uiwidgets
正在加载...
取消
保存