| Index: chrome/browser/chromeos/ui/accessibility_focus_ring_layer.cc
|
| diff --git a/chrome/browser/chromeos/ui/accessibility_focus_ring_layer.cc b/chrome/browser/chromeos/ui/accessibility_focus_ring_layer.cc
|
| index 858c92f75d559cf0d9a965c059dbc44b719db445..504e86a6d0008b1ebe90ecad36fa57e08e42fe8f 100644
|
| --- a/chrome/browser/chromeos/ui/accessibility_focus_ring_layer.cc
|
| +++ b/chrome/browser/chromeos/ui/accessibility_focus_ring_layer.cc
|
| @@ -9,6 +9,7 @@
|
| #include "base/bind.h"
|
| #include "ui/aura/window.h"
|
| #include "ui/compositor/layer.h"
|
| +#include "ui/compositor/paint_context.h"
|
| #include "ui/gfx/canvas.h"
|
|
|
| namespace chromeos {
|
| @@ -109,7 +110,8 @@ void AccessibilityFocusRingLayer::Set(const AccessibilityFocusRing& ring) {
|
| layer()->SetBounds(bounds);
|
| }
|
|
|
| -void AccessibilityFocusRingLayer::OnPaintLayer(gfx::Canvas* canvas) {
|
| +void AccessibilityFocusRingLayer::OnPaintLayer(
|
| + const ui::PaintContext& context) {
|
| gfx::Vector2d offset = layer()->bounds().OffsetFromOrigin();
|
|
|
| SkPaint paint;
|
| @@ -117,6 +119,8 @@ void AccessibilityFocusRingLayer::OnPaintLayer(gfx::Canvas* canvas) {
|
| paint.setStyle(SkPaint::kStroke_Style);
|
| paint.setStrokeWidth(2);
|
|
|
| + gfx::Canvas* canvas = context.canvas();
|
| +
|
| SkPath path;
|
| const int w = kGradientWidth;
|
| for (int i = 0; i < w; ++i) {
|
|
|