예제 #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(),
                cullRect         = Rect.largest,
                frameTime        = frame.context().frameTime()
            };

            this._rootLayer.preroll(prerollContext, _identityMatrix);
        }
        public void paint(CompositorContext.ScopedFrame frame, bool ignoreRasterCache = false)
        {
            var paintContext = new PaintContext {
                canvas      = frame.canvas(),
                rasterCache = ignoreRasterCache ? null : frame.context().rasterCache(),
                frameTime   = frame.context().frameTime()
            };

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