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

27 行
851 B

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