Commit e7c301c0 authored by danakj's avatar danakj Committed by Commit bot

views: Don't need to anti-alias clip a rect.

OmniboxPopupContentsView used to be clipped by a rounded rect,
so it used a ClipPath and anti-aliased the clip for the corners.

Now it is just a rectangle, so the anti-aliasing is pointless
and potentially adds overhead.

R=sky
BUG=466426

Review URL: https://codereview.chromium.org/1055933003

Cr-Commit-Position: refs/heads/master@{#323931}
parent cf710925
......@@ -422,9 +422,7 @@ void OmniboxPopupContentsView::PaintChildren(const ui::PaintContext& context) {
gfx::Canvas* canvas = context.canvas();
canvas->Save();
canvas->sk_canvas()->clipRect(gfx::RectToSkRect(contents_bounds),
SkRegion::kIntersect_Op,
true /* doAntialias */);
canvas->ClipRect(contents_bounds);
canvas->DrawColor(result_view_at(0)->GetColor(OmniboxResultView::NORMAL,
OmniboxResultView::BACKGROUND));
View::PaintChildren(context);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment