| Index: third_party/WebKit/Source/platform/graphics/Gradient.h
|
| diff --git a/third_party/WebKit/Source/platform/graphics/Gradient.h b/third_party/WebKit/Source/platform/graphics/Gradient.h
|
| index b7a1c6a5c0fe6e84d61179b2b00a3438fbf256d5..8eb54c198ae7ba8bd60f7a5750eb4bb63b1eb8c8 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/Gradient.h
|
| +++ b/third_party/WebKit/Source/platform/graphics/Gradient.h
|
| @@ -102,16 +102,14 @@
|
|
|
| using ColorBuffer = Vector<SkColor, 8>;
|
| using OffsetBuffer = Vector<SkScalar, 8>;
|
| - virtual std::unique_ptr<PaintShader> CreateShader(const ColorBuffer&,
|
| - const OffsetBuffer&,
|
| - SkShader::TileMode,
|
| - uint32_t flags,
|
| - const SkMatrix&,
|
| - SkColor) const = 0;
|
| + virtual sk_sp<SkShader> CreateShader(const ColorBuffer&,
|
| + const OffsetBuffer&,
|
| + SkShader::TileMode,
|
| + uint32_t flags,
|
| + const SkMatrix&) const = 0;
|
|
|
| private:
|
| - std::unique_ptr<PaintShader> CreateShaderInternal(
|
| - const SkMatrix& local_matrix);
|
| + sk_sp<PaintShader> CreateShaderInternal(const SkMatrix& local_matrix);
|
|
|
| void SortStopsIfNecessary();
|
| void FillSkiaStops(ColorBuffer&, OffsetBuffer&) const;
|
| @@ -123,7 +121,7 @@
|
| Vector<ColorStop, 2> stops_;
|
| bool stops_sorted_;
|
|
|
| - mutable std::unique_ptr<PaintShader> cached_shader_;
|
| + mutable sk_sp<PaintShader> cached_shader_;
|
| };
|
|
|
| } // namespace blink
|
|
|