浏览代码

fix

/siyaoH-1.17-PlatformMessage
siyao 4 年前
当前提交
5c3c8676
共有 3 个文件被更改,包括 5 次插入9 次删除
  1. 8
      com.unity.uiwidgets/Runtime/engine2/AndroidPlatformUtil.cs
  2. 2
      engine/README.md
  3. 4
      engine/src/flow/raster_cache.cc

8
com.unity.uiwidgets/Runtime/engine2/AndroidPlatformUtil.cs


}
return dir + file;
return "";
}
[DllImport(NativeBindings.dllName)]

if (Application.platform == RuntimePlatform.Android) {
InitUnpackFile(unpackFile);
GL.IssuePluginEvent(GetUnityContextEventFunc(), 1);
}
InitUnpackFile(unpackFile);
GL.IssuePluginEvent(GetUnityContextEventFunc(), 1);
}
}
}

2
engine/README.md


```
## build android sdk on mac
## How to Build (Android)
### Build flutter fml + skia + txt
1. Setting up the Engine development environment

4
engine/src/flow/raster_cache.cc


SkIRect bounds =
RasterCache::GetDeviceBounds(logical_rect_, canvas.getTotalMatrix());
FML_DCHECK(
Math_abs(bounds.size().width() - image_->dimensions().width()) <= 1 &&
Math_abs(bounds.size().height() - image_->dimensions().height()) <= 1);
Math_abs(bounds.size().width() - image_->dimensions().width()) <= 1 &&
Math_abs(bounds.size().height() - image_->dimensions().height()) <= 1);
canvas.resetMatrix();
canvas.drawImage(image_, bounds.fLeft, bounds.fTop, paint);
}

正在加载...
取消
保存