浏览代码

fix update error

/zgh-devtools
guanghuispark 4 年前
当前提交
050ae00b
共有 2 个文件被更改,包括 42 次插入3 次删除
  1. 2
      com.unity.uiwidgets/Runtime/painting/image_stream.cs
  2. 43
      com.unity.uiwidgets/Runtime/ui2/painting.cs

2
com.unity.uiwidgets/Runtime/painting/image_stream.cs


return true;
}
return Equals(image, other.image) && scale.Equals(other.scale);
return image.Equals(other.image) && scale.Equals(other.scale);
}
public override bool Equals(object obj) {

43
com.unity.uiwidgets/Runtime/ui2/painting.cs


using System.Runtime.InteropServices;
using System.Text;
using AOT;
using Unity.UIWidgets.animation;
using Unity.UIWidgets.async2;
using Unity.UIWidgets.foundation;
using UnityEngine;

public int rowBytes;
}
public class Image : NativeWrapperDisposable {
public class Image : NativeWrapperDisposable, IEquatable<Image> {
internal Image(IntPtr ptr) : base(ptr) {
}

Debug.LogException(ex);
}
}
public override string ToString() => $"[{width}\u00D7{height}]";
[DllImport(NativeBindings.dllName)]

[DllImport(NativeBindings.dllName)]
static extern IntPtr Image_toByteData(IntPtr ptr, int format, Image_toByteDataCallback callback,
IntPtr callbackHandle);
public bool Equals(Image other) {
return other != null && width == other.width && height == other.height && _ptr.Equals(other._ptr);
}
public override bool Equals(object obj)
{
if (ReferenceEquals(null, obj)) {
return false;
}
if (ReferenceEquals(this, obj)) {
return true;
}
if (obj.GetType() != GetType()) {
return false;
}
return Equals((Image) obj);
}
public static bool operator ==(Image left, Image right) {
return Equals(left, right);
}
public static bool operator !=(Image left, Image right) {
return !Equals(left, right);
}
public override int GetHashCode() {
unchecked {
var hashCode = (width != null ? width.GetHashCode() : 0);
hashCode = (hashCode * 397) ^(height != null ? height.GetHashCode() : 0);
hashCode = (hashCode * 397) ^ (_ptr != null ? _ptr.GetHashCode() : 0);
return hashCode;
}
}
}
/*

正在加载...
取消
保存