| 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 8eb54c198ae7ba8bd60f7a5750eb4bb63b1eb8c8..348d00068ea0ba6fb921eb704fa69205eb93e0a0 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/Gradient.h
|
| +++ b/third_party/WebKit/Source/platform/graphics/Gradient.h
|
| @@ -102,14 +102,15 @@ class PLATFORM_EXPORT Gradient : public RefCounted<Gradient> {
|
|
|
| using ColorBuffer = Vector<SkColor, 8>;
|
| using OffsetBuffer = Vector<SkScalar, 8>;
|
| - virtual sk_sp<SkShader> CreateShader(const ColorBuffer&,
|
| - const OffsetBuffer&,
|
| - SkShader::TileMode,
|
| - uint32_t flags,
|
| - const SkMatrix&) const = 0;
|
| + virtual std::unique_ptr<PaintShader> CreateShader(const ColorBuffer&,
|
| + const OffsetBuffer&,
|
| + SkShader::TileMode,
|
| + uint32_t flags,
|
| + const SkMatrix&) const = 0;
|
|
|
| private:
|
| - sk_sp<PaintShader> CreateShaderInternal(const SkMatrix& local_matrix);
|
| + std::unique_ptr<PaintShader> CreateShaderInternal(
|
| + const SkMatrix& local_matrix);
|
|
|
| void SortStopsIfNecessary();
|
| void FillSkiaStops(ColorBuffer&, OffsetBuffer&) const;
|
| @@ -121,7 +122,7 @@ class PLATFORM_EXPORT Gradient : public RefCounted<Gradient> {
|
| Vector<ColorStop, 2> stops_;
|
| bool stops_sorted_;
|
|
|
| - mutable sk_sp<PaintShader> cached_shader_;
|
| + mutable std::unique_ptr<PaintShader> cached_shader_;
|
| };
|
|
|
| } // namespace blink
|
|
|