Use a class predefine instead of including header of CanvasContext.