您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 
 

27 行
823 B

using UnityEngine;
namespace Unity.UIWidgets.uiOld{
public class CommandBufferCanvas : uiRecorderCanvas {
readonly PictureFlusher _flusher;
public CommandBufferCanvas(RenderTexture renderTexture, float devicePixelRatio, MeshPool meshPool)
: base(new uiPictureRecorder()) {
_flusher = new PictureFlusher(renderTexture, devicePixelRatio, meshPool);
}
public override float getDevicePixelRatio() {
return _flusher.getDevicePixelRatio();
}
public override void flush() {
var picture = _recorder.endRecording();
_flusher.flush(picture);
_recorder.reset();
ObjectPool<uiPicture>.release(picture);
}
public void dispose() {
_flusher.dispose();
}
}
}