| Index: ui/views/controls/button/toggle_button.cc
|
| diff --git a/ui/views/controls/button/toggle_button.cc b/ui/views/controls/button/toggle_button.cc
|
| index 349acde543d039138a68afea47b172976782df1a..0e39d93a40b955909352a0ca566550fe5b1c9fe7 100644
|
| --- a/ui/views/controls/button/toggle_button.cc
|
| +++ b/ui/views/controls/button/toggle_button.cc
|
| @@ -4,8 +4,8 @@
|
|
|
| #include "ui/views/controls/button/toggle_button.h"
|
|
|
| +#include "cc/paint/paint_flags.h"
|
| #include "third_party/skia/include/core/SkDrawLooper.h"
|
| -#include "third_party/skia/include/core/SkPaint.h"
|
| #include "ui/accessibility/ax_node_data.h"
|
| #include "ui/gfx/canvas.h"
|
| #include "ui/gfx/color_palette.h"
|
| @@ -78,7 +78,7 @@ class ToggleButton::ThumbView : public InkDropHostView {
|
| ui::NativeTheme::kColorId_LabelEnabledColor),
|
| 0x99));
|
| shadows.push_back(shadow.Scale(dsf));
|
| - SkPaint thumb_paint;
|
| + cc::PaintFlags thumb_paint;
|
| thumb_paint.setLooper(gfx::CreateShadowDrawLooperCorrectBlur(shadows));
|
| thumb_paint.setAntiAlias(true);
|
| const SkColor thumb_on_color = GetNativeTheme()->GetSystemColor(
|
| @@ -197,7 +197,7 @@ void ToggleButton::OnPaint(gfx::Canvas* canvas) {
|
| gfx::RectF track_rect(GetTrackBounds());
|
| track_rect.Scale(dsf);
|
| track_rect = gfx::RectF(gfx::ToEnclosingRect(track_rect));
|
| - SkPaint track_paint;
|
| + cc::PaintFlags track_paint;
|
| track_paint.setAntiAlias(true);
|
| const double color_ratio = slide_animation_.GetCurrentValue();
|
| track_paint.setColor(color_utils::AlphaBlend(
|
|
|