提交 06f6a987 编写于 作者: J Jason Simmons 提交者: GitHub

Apply antialiasing in calls to SkCanvas::clipRect (#3973)

Without this, the cull rect calculated by an SkPicture may be truncated
to integer pixel coordinates.  The raster cache relies on a precise cull
rect in logical coordinates.

See https://bugs.chromium.org/p/skia/issues/detail?id=6954
上级 941070f5
......@@ -157,7 +157,7 @@ void Canvas::transform(const tonic::Float64List& matrix4) {
void Canvas::clipRect(double left, double top, double right, double bottom) {
if (!canvas_)
return;
canvas_->clipRect(SkRect::MakeLTRB(left, top, right, bottom));
canvas_->clipRect(SkRect::MakeLTRB(left, top, right, bottom), SkClipOp::kIntersect, true);
}
void Canvas::clipRRect(const RRect& rrect) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册