public void Dispose() { if (this._surface != null) { this._surface.Dispose(); this._surface = null; } if (this._meshPool != null) { this._meshPool.Dispose(); this._meshPool = null; } }
void _createOrUpdateRenderTexture(Size size, float devicePixelRatio) { if (this._surface != null && this._surface.size == size && this._surface.devicePixelRatio == devicePixelRatio && this._surface.getRenderTexture() != null) { return; } if (this._surface != null) { this._surface.Dispose(); this._surface = null; } this._surface = new GrSurface(size, devicePixelRatio, this._meshPool, this._antiAliasing); }
public SurfaceFrame(GrSurface surface, SubmitCallback submitCallback) { this._surface = surface; this._submitCallback = submitCallback; }