浏览代码

update binding dependency

/siyaoH-1.17-PlatformMessage
siyao 4 年前
当前提交
409f26c4
共有 7 个文件被更改,包括 42 次插入25 次删除
  1. 2
      com.unity.uiwidgets/Runtime/gestures/binding.cs
  2. 46
      com.unity.uiwidgets/Runtime/painting/binding.cs
  3. 8
      com.unity.uiwidgets/Runtime/rendering/binding.cs
  4. 4
      com.unity.uiwidgets/Runtime/scheduler2/binding.cs
  5. 3
      com.unity.uiwidgets/Runtime/services/binding.cs
  6. 1
      com.unity.uiwidgets/Runtime/widgets/binding.cs
  7. 3
      engine/.gitignore

2
com.unity.uiwidgets/Runtime/gestures/binding.cs


using UnityEngine;
namespace Unity.UIWidgets.gestures {
public class GestureBinding : SchedulerBinding, HitTestable, HitTestDispatcher, HitTestTarget {
public class GestureBinding : BindingBase, HitTestable, HitTestDispatcher, HitTestTarget {
protected override void initInstances() {
base.initInstances();

46
com.unity.uiwidgets/Runtime/painting/binding.cs


using System;
using Unity.UIWidgets.gestures;
using Unity.UIWidgets.scheduler2;
using Unity.UIWidgets.services;
public class PaintingBinding : GestureBinding {
public class PaintingBinding : ServicesBinding {
protected override void initInstances() {
base.initInstances();
instance = this;

}
public new static PaintingBinding instance {
get { return (PaintingBinding) GestureBinding.instance; }
get { return (PaintingBinding) ServicesBinding.instance; }
set { Window.instance._binding = value; }
}

ImageCache _imageCache;
readonly _SystemFontsNotifier _systemFonts = new _SystemFontsNotifier();
public _SystemFontsNotifier systemFonts {
public Listenable systemFonts {
readonly _SystemFontsNotifier _systemFonts = new _SystemFontsNotifier();
}
public static partial class painting_ {
public static ImageCache imageCache => PaintingBinding.instance.imageCache;
Future<ui.Codec> instantiateImageCodec(byte[] bytes,
int? cacheWidth,
int? cacheHeight
) {
D.assert(cacheWidth == null || cacheWidth > 0);
D.assert(cacheHeight == null || cacheHeight > 0);
return ui_.instantiateImageCodec(
bytes,
targetWidth: cacheWidth,
targetHeight: cacheHeight
);
}
public class _SystemFontsNotifier : Listenable {
HashSet<VoidCallback> _systemFontsCallbacks = new HashSet<VoidCallback>();
internal class _SystemFontsNotifier : Listenable {
readonly HashSet<VoidCallback> _systemFontsCallbacks = new HashSet<VoidCallback>();
void notifyListeners () {
void notifyListeners() {
public void addListener(VoidCallback listener) {
_systemFontsCallbacks.Add(listener);
}

}
}
public static partial class painting_ {
public static ImageCache imageCache => PaintingBinding.instance.imageCache;
}
}

8
com.unity.uiwidgets/Runtime/rendering/binding.cs


using System;
using Unity.UIWidgets.foundation;
using Unity.UIWidgets.gestures;
using Unity.UIWidgets.painting;
using Unity.UIWidgets.scheduler2;
public class RendererBinding : PaintingBinding {
public class RendererBinding : SchedulerBinding {
get { return (RendererBinding) PaintingBinding.instance; }
set { PaintingBinding.instance = value; }
get { return (RendererBinding) SchedulerBinding.instance; }
set { Window.instance._binding = value; }
}
protected override void initInstances() {

4
com.unity.uiwidgets/Runtime/scheduler2/binding.cs


using Unity.UIWidgets.async;
using Unity.UIWidgets.async2;
using Unity.UIWidgets.foundation;
using Unity.UIWidgets.painting;
using UnityEditor.PackageManager;
using UnityEngine;
using FrameTiming = Unity.UIWidgets.ui.FrameTiming;
using Timer = Unity.UIWidgets.async2.Timer;

postFrameCallbacks,
}
public class SchedulerBinding : BindingBase {
public class SchedulerBinding : PaintingBinding {
protected override void initInstances() {
base.initInstances();
instance = this;

3
com.unity.uiwidgets/Runtime/services/binding.cs


using System.Collections.Generic;
using Unity.UIWidgets.async2;
using Unity.UIWidgets.foundation;
using Unity.UIWidgets.gestures;
public class ServicesBinding : BindingBase {
public class ServicesBinding : GestureBinding {
protected override void initInstances() {
base.initInstances();
instance = this;

1
com.unity.uiwidgets/Runtime/widgets/binding.cs


using System.Collections.Generic;
using Unity.UIWidgets.async2;
using Unity.UIWidgets.foundation;
using Unity.UIWidgets.gestures;
using Unity.UIWidgets.rendering;
using Unity.UIWidgets.ui;
using UnityEngine;

3
engine/.gitignore


artifacts
build
obj
*.gen.*
*.gen.*
third_party/skia
正在加载...
取消
保存