Esempio n. 1
0
        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());
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
        public void paint(CompositorContext.ScopedFrame frame)
        {
            var paintContext = new PaintContext {
                canvas = frame.canvas(),
            };

            if (this._rootLayer.needsPainting)
            {
                this._rootLayer.paint(paintContext);
            }
        }
Esempio n. 4
0
        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);
            }
        }