Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(840)

Unified Diff: ui/views/bubble/bubble_border.cc

Issue 771563003: use SkClipOps where we can, legacyClip where we need to rework Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/ozone/platform/dri/dri_window_delegate_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/bubble/bubble_border.cc
diff --git a/ui/views/bubble/bubble_border.cc b/ui/views/bubble/bubble_border.cc
index f6d2d6a46f42a50e4968ab98d32fcbe15b36dea5..d4302d7bc63e38dc7953f5bfd79d9218e7f1c9a0 100644
--- a/ui/views/bubble/bubble_border.cc
+++ b/ui/views/bubble/bubble_border.cc
@@ -211,7 +211,7 @@ void BubbleBorder::Paint(const views::View& view, gfx::Canvas* canvas) {
// Clip the arrow bounds out to avoid painting the overlapping edge area.
canvas->Save();
SkRect arrow_rect(gfx::RectToSkRect(arrow_bounds));
- canvas->sk_canvas()->clipRect(arrow_rect, SkRegion::kDifference_Op);
+ canvas->sk_canvas()->clipRect(arrow_rect, kDifference_SkClipOp);
Painter::PaintPainterAt(canvas, images_->border_painter.get(), bounds);
canvas->Restore();
« no previous file with comments | « ui/ozone/platform/dri/dri_window_delegate_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698