提交 0d32c208 编写于 作者: C ceisserer

8024261: xrender: improve performance of small fillRect operations

Reviewed-by: prr, bae
上级 866f7bd5
...@@ -285,7 +285,12 @@ public class XRCompositeManager { ...@@ -285,7 +285,12 @@ public class XRCompositeManager {
if (xorEnabled) { if (xorEnabled) {
con.GCRectangles(dst.getXid(), dst.getGC(), rects); con.GCRectangles(dst.getXid(), dst.getGC(), rects);
} else { } else {
con.renderRectangles(dst.getPicture(), compRule, solidColor, rects); if (rects.getSize() == 1) {
con.renderRectangle(dst.getPicture(), compRule, solidColor,
rects.getX(0), rects.getY(0), rects.getWidth(0), rects.getHeight(0));
} else {
con.renderRectangles(dst.getPicture(), compRule, solidColor, rects);
}
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册