Source
void renderMask(RenderState renderState) { if (renderState.renderContext is RenderContextCanvas) { var commands = _getCommands(false); var context = new _GraphicsContextCanvasMask(renderState); _updateContext(context, commands); } else { var commands = _getCommands(true); var context = new GraphicsContextRenderMask(renderState); _updateContext(context, commands); } }