Index: chrome/browser/chromeos/ui/accessibility_cursor_ring_layer.cc |
diff --git a/chrome/browser/chromeos/ui/accessibility_cursor_ring_layer.cc b/chrome/browser/chromeos/ui/accessibility_cursor_ring_layer.cc |
index b9c5c6221eb7d8a5d7b4979b092969a965fe46af..205403ed669e08fcb9375e0f286148e3598cf92c 100644 |
--- a/chrome/browser/chromeos/ui/accessibility_cursor_ring_layer.cc |
+++ b/chrome/browser/chromeos/ui/accessibility_cursor_ring_layer.cc |
@@ -60,22 +60,22 @@ void AccessibilityCursorRingLayer::OnPaintLayer( |
const ui::PaintContext& context) { |
ui::PaintRecorder recorder(context, layer()->size()); |
- SkPaint paint; |
- paint.setFlags(SkPaint::kAntiAlias_Flag); |
- paint.setStyle(SkPaint::kStroke_Style); |
- paint.setStrokeWidth(2); |
+ cc::PaintFlags flags; |
+ flags.setAntiAlias(true); |
+ flags.setStyle(cc::PaintFlags::kStroke_Style); |
+ flags.setStrokeWidth(2); |
gfx::Rect r = layer()->bounds(); |
r.Offset(-r.OffsetFromOrigin()); |
r.Inset(kLayerMargin, kLayerMargin, kLayerMargin, kLayerMargin); |
const int w = kGradientWidth; |
for (int i = 0; i < w; ++i) { |
- paint.setColor( |
+ flags.setColor( |
SkColorSetARGBMacro(255 * (i) * (i) / (w * w), red_, green_, blue_)); |
SkPath path; |
path.addOval(SkRect::MakeXYWH(r.x(), r.y(), r.width(), r.height())); |
r.Inset(1, 1, 1, 1); |
- recorder.canvas()->DrawPath(path, paint); |
+ recorder.canvas()->DrawPath(path, flags); |
} |
} |