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

Unified Diff: ui/views/controls/focus_ring.cc

Issue 2523673004: [NOT FOR COMMIT] Fully replace SkCanvas uses.
Patch Set: Support Android build. 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/controls/combobox/combobox.cc ('k') | ui/views/controls/focusable_border.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/focus_ring.cc
diff --git a/ui/views/controls/focus_ring.cc b/ui/views/controls/focus_ring.cc
index 29adfa0e2207a619b1310df98c028961dec85b54..55ffc3686f015aee44f808fd5a936192296ef5a8 100644
--- a/ui/views/controls/focus_ring.cc
+++ b/ui/views/controls/focus_ring.cc
@@ -70,7 +70,7 @@ void FocusRing::Layout() {
}
void FocusRing::OnPaint(gfx::Canvas* canvas) {
- SkPaint paint;
+ CdlPaint paint;
paint.setAntiAlias(true);
paint.setColor(
SkColorSetA(GetNativeTheme()->GetSystemColor(
@@ -78,7 +78,7 @@ void FocusRing::OnPaint(gfx::Canvas* canvas) {
? override_color_id_
: ui::NativeTheme::kColorId_FocusedBorderColor),
0x66));
- paint.setStyle(SkPaint::kStroke_Style);
+ paint.setStyle(CdlPaint::kStroke_Style);
paint.setStrokeWidth(kFocusHaloThicknessDp);
gfx::RectF rect(GetLocalBounds());
rect.Inset(gfx::InsetsF(kFocusHaloThicknessDp / 2.f));
« no previous file with comments | « ui/views/controls/combobox/combobox.cc ('k') | ui/views/controls/focusable_border.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698