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

Unified Diff: ui/gfx/paint_throbber.cc

Issue 2640983002: Rename paint data structures (Closed)
Patch Set: Rebase Created 3 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
Index: ui/gfx/paint_throbber.cc
diff --git a/ui/gfx/paint_throbber.cc b/ui/gfx/paint_throbber.cc
index 59305a0dd033e5ee7bd75f45e6d951f7b37c94f2..2580687dff687bc7c4a3833bb0536eb134582645 100644
--- a/ui/gfx/paint_throbber.cc
+++ b/ui/gfx/paint_throbber.cc
@@ -5,6 +5,7 @@
#include "ui/gfx/paint_throbber.h"
#include "base/time/time.h"
+#include "cc/paint/paint_flags.h"
#include "third_party/skia/include/core/SkPath.h"
#include "ui/gfx/animation/tween.h"
#include "ui/gfx/canvas.h"
@@ -46,11 +47,11 @@ void PaintArc(Canvas* canvas,
SkPath path;
path.arcTo(RectToSkRect(oval), start_angle, sweep, true);
- SkPaint paint;
+ cc::PaintFlags paint;
paint.setColor(color);
- paint.setStrokeCap(SkPaint::kRound_Cap);
+ paint.setStrokeCap(cc::PaintFlags::kRound_Cap);
paint.setStrokeWidth(stroke_width);
- paint.setStyle(SkPaint::kStroke_Style);
+ paint.setStyle(cc::PaintFlags::kStroke_Style);
paint.setAntiAlias(true);
canvas->DrawPath(path, paint);
}

Powered by Google App Engine
This is Rietveld 408576698