canvas state functions add to canvasrenderer

canvas state functions add to canvasrenderer