Update for createShapeCtx().