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

            if (this._rootLayer.needsPainting)
            {
                this._rootLayer.paint(paintContext);
            }
        }
예제 #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);
            }
        }