提交 3afab470 编写于 作者: B Brian Salomon 提交者: Brian Osman

Remove use of SkPath::setConvexity in GraphicsContext. (#4398)

上级 8dc5e851
......@@ -1421,17 +1421,6 @@ void GraphicsContext::setPathFromConvexPoints(SkPath* path,
path->lineTo(WebCoreFloatToSkScalar(points[i].x()),
WebCoreFloatToSkScalar(points[i].y()));
}
/* The code used to just blindly call this
path->setIsConvex(true);
But webkit can sometimes send us non-convex 4-point values, so we mark the
path's convexity as unknown, so it will get computed by skia at draw time.
See crbug.com 108605
*/
SkPath::Convexity convexity = SkPath::kConvex_Convexity;
if (numPoints == 4)
convexity = SkPath::kUnknown_Convexity;
path->setConvexity(convexity);
}
void GraphicsContext::setRadii(SkVector* radii,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册