[Direct2D1] Added ComputeFlatteningTolerance function (#417).