| Index: ui/views/touchui/touch_selection_controller_impl.cc
|
| diff --git a/ui/views/touchui/touch_selection_controller_impl.cc b/ui/views/touchui/touch_selection_controller_impl.cc
|
| index 4b06e0945c9da42117676912e47122d45bd390e6..4c10fb5c71c1e40d7ce77642a476685d9f7b3b78 100644
|
| --- a/ui/views/touchui/touch_selection_controller_impl.cc
|
| +++ b/ui/views/touchui/touch_selection_controller_impl.cc
|
| @@ -253,14 +253,13 @@ class TouchSelectionControllerImpl::TouchContextMenuView
|
| points[0].iset(0, 0);
|
| points[1].iset(0, height());
|
|
|
| - SkShader* shader = SkGradientShader::CreateLinear(points,
|
| + skia::RefPtr<SkShader> shader = SkGradientShader::CreateLinear(points,
|
| kGradientColors, kGradientPoints, arraysize(kGradientPoints),
|
| SkShader::kRepeat_TileMode);
|
| DCHECK(shader);
|
|
|
| SkPaint paint;
|
| - paint.setShader(shader);
|
| - shader->unref();
|
| + paint.setShader(shader.get());
|
|
|
| paint.setStyle(SkPaint::kFill_Style);
|
| paint.setXfermodeMode(SkXfermode::kSrc_Mode);
|
|
|