public void preroll(CompositorContext.ScopedFrame frame, bool ignoreRasterCache = false) { var prerollContext = new PrerollContext { rasterCache = ignoreRasterCache ? null : frame.context().rasterCache(), devicePixelRatio = frame.canvas().getDevicePixelRatio() }; this._rootLayer.preroll(prerollContext, Matrix3.I()); }
public void preroll(CompositorContext.ScopedFrame frame, bool ignoreRasterCache = false) { var prerollContext = new PrerollContext { rasterCache = ignoreRasterCache ? null : frame.context().rasterCache(), devicePixelRatio = frame.canvas().getDevicePixelRatio(), cullRect = Rect.largest, }; this._rootLayer.preroll(prerollContext, _identityMatrix); }
public void paint(CompositorContext.ScopedFrame frame) { var paintContext = new PaintContext { canvas = frame.canvas(), }; if (this._rootLayer.needsPainting) { this._rootLayer.paint(paintContext); } }
public void paint(CompositorContext.ScopedFrame frame, bool ignoreRasterCache = false) { var paintContext = new PaintContext { canvas = frame.canvas(), rasterCache = ignoreRasterCache ? null : frame.context().rasterCache(), }; if (this._rootLayer.needsPainting) { this._rootLayer.paint(paintContext); } }