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

Unified Diff: chrome/browser/chromeos/ui/accessibility_cursor_ring_layer.cc

Issue 2717943002: Fix cc/paint skia type mismatches (Closed)
Patch Set: Rebase Created 3 years, 10 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: 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);
}
}

Powered by Google App Engine
This is Rietveld 408576698