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

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

Issue 2575533002: SkClipOp is an enum class now (Closed)
Patch Set: Created 4 years 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/views/animation/ink_drop_painted_layer_delegates.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 8b282fa8abeaa7d71feaa8cf773f5681e9d0c673..3a1609b936945900e8b5df13e8b66eea95b3f6c6 100644
--- a/ui/views/bubble/bubble_border.cc
+++ b/ui/views/bubble/bubble_border.cc
@@ -358,7 +358,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();
- canvas->ClipRect(arrow_bounds, kDifference_SkClipOp);
+ canvas->ClipRect(arrow_bounds, SkClipOp::kDifference);
Painter::PaintPainterAt(canvas, images_->border_painter.get(), bounds);
canvas->Restore();
@@ -538,7 +538,7 @@ void BubbleBorder::PaintMd(const View& view, gfx::Canvas* canvas) {
paint.setAntiAlias(true);
SkRRect r_rect = GetClientRect(view);
- canvas->sk_canvas()->clipRRect(r_rect, kDifference_SkClipOp,
+ canvas->sk_canvas()->clipRRect(r_rect, SkClipOp::kDifference,
true /*doAntiAlias*/);
// The border is drawn outside the content area.
@@ -550,7 +550,7 @@ void BubbleBorder::PaintMd(const View& view, gfx::Canvas* canvas) {
void BubbleBorder::PaintNoAssets(const View& view, gfx::Canvas* canvas) {
gfx::ScopedCanvas scoped(canvas);
- canvas->sk_canvas()->clipRRect(GetClientRect(view), kDifference_SkClipOp,
+ canvas->sk_canvas()->clipRRect(GetClientRect(view), SkClipOp::kDifference,
true /*doAntiAlias*/);
canvas->sk_canvas()->drawColor(SK_ColorTRANSPARENT, SkBlendMode::kSrc);
}
« no previous file with comments | « ui/views/animation/ink_drop_painted_layer_delegates.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698