| Index: ui/gfx/shadow_util.cc
|
| diff --git a/ui/gfx/shadow_util.cc b/ui/gfx/shadow_util.cc
|
| index 04360f9b55c8e598a96f3b98524aeeb4dff77dcb..32e67e6ad7bfb8780cb6ea005c871de235211d26 100644
|
| --- a/ui/gfx/shadow_util.cc
|
| +++ b/ui/gfx/shadow_util.cc
|
| @@ -36,8 +36,8 @@ class ShadowNineboxSource : public CanvasImageSource {
|
|
|
| // CanvasImageSource overrides:
|
| void Draw(Canvas* canvas) override {
|
| - SkPaint paint;
|
| - paint.setLooper(CreateShadowDrawLooperCorrectBlur(shadows_));
|
| + cc::PaintFlags flags;
|
| + flags.setLooper(CreateShadowDrawLooperCorrectBlur(shadows_));
|
| Insets insets = -ShadowValue::GetMargin(shadows_);
|
| gfx::Rect bounds(size());
|
| bounds.Inset(insets);
|
| @@ -49,8 +49,8 @@ class ShadowNineboxSource : public CanvasImageSource {
|
| // Clipping alone is not enough --- due to anti aliasing there will still be
|
| // some of the fill color in the rounded corners. We must make the fill
|
| // color transparent.
|
| - paint.setColor(SK_ColorTRANSPARENT);
|
| - canvas->sk_canvas()->drawRRect(r_rect, paint);
|
| + flags.setColor(SK_ColorTRANSPARENT);
|
| + canvas->sk_canvas()->drawRRect(r_rect, flags);
|
| }
|
|
|
| private:
|
|
|