浏览代码

android gdb

/siyaoH-1.17-PlatformMessage
siyao 4 年前
当前提交
8daf0ea3
共有 4 个文件被更改,包括 13 次插入5 次删除
  1. 1
      engine/Build.bee.cs
  2. 1
      engine/build.py
  3. 15
      engine/src/shell/platform/unity/android/unity_surface_manager.cc
  4. 1
      engine/src/shell/platform/unity/android/unity_surface_manager.h

1
engine/Build.bee.cs


"--sysroot="+flutterRoot+"/third_party/android_tools/ndk/platforms/android-16/arch-arm",
"-L"+flutterRoot + "/third_party/android_tools/ndk/sources/cxx-stl/llvm-libc++/libs/armeabi-v7a",
"-Wl,--build-id=sha1",
"-g",
"-Wl,-soname=libUIWidgets_d.so",
"-Wl,--whole-archive",
}));

1
engine/build.py


"-o",
soFile,
"-Wl,--build-id=sha1",
"-g",
"-Wl,-soname=libUIWidgets_d.so",
"-Wl,--whole-archive",
]

15
engine/src/shell/platform/unity/android/unity_surface_manager.cc


bool UnitySurfaceManager::MakeCurrent(const EGLSurface surface)
{
int width_ = 100;
int height_ = 100;
EGLBoolean a = eglMakeCurrent(egl_display_, surface, surface, egl_context_) ==
EGLBoolean result = eglMakeCurrent(egl_display_, surface, surface, egl_context_) ==
draw();
return result;
}
int i = 0;
void UnitySurfaceManager::draw() {
int width_ = 100;
int height_ = 100;
int i = 0;
sk_sp<GrContext> gr_context_ = GrContext::MakeGL();
UnityConsole::WriteLine(("test c++" + std::to_string(i++)).c_str());

m_SkSurface = SkSurface::MakeFromBackendTexture(
gr_context_.get(), m_backendTex, kBottomLeft_GrSurfaceOrigin, 1,
kRGBA_8888_SkColorType, nullptr, nullptr);
return a;
}
bool UnitySurfaceManager::MakeResourceCurrent()

1
engine/src/shell/platform/unity/android/unity_surface_manager.h


FML_DISALLOW_COPY_AND_ASSIGN(UnitySurfaceManager);
private:
void draw();
bool Initialize(IUnityInterfaces* unity_interfaces);
void CleanUp();

正在加载...
取消
保存