Index: src/effects/SkPerlinNoiseShader.cpp |
diff --git a/src/effects/SkPerlinNoiseShader.cpp b/src/effects/SkPerlinNoiseShader.cpp |
index 72b7e0280da12bb67d2d05c38b1b902d6ae2675a..c8b04c997521e7f91772db542801ac28264c4fa0 100644 |
--- a/src/effects/SkPerlinNoiseShader.cpp |
+++ b/src/effects/SkPerlinNoiseShader.cpp |
@@ -286,7 +286,7 @@ SkPerlinNoiseShader::SkPerlinNoiseShader(SkPerlinNoiseShader::Type type, |
SkPerlinNoiseShader::~SkPerlinNoiseShader() { |
} |
-SkFlattenable* SkPerlinNoiseShader::CreateProc(SkReadBuffer& buffer) { |
+sk_sp<SkFlattenable> SkPerlinNoiseShader::CreateProc(SkReadBuffer& buffer) { |
Type type = (Type)buffer.readInt(); |
SkScalar freqX = buffer.readScalar(); |
SkScalar freqY = buffer.readScalar(); |
@@ -299,10 +299,10 @@ SkFlattenable* SkPerlinNoiseShader::CreateProc(SkReadBuffer& buffer) { |
switch (type) { |
case kFractalNoise_Type: |
return SkPerlinNoiseShader::MakeFractalNoise(freqX, freqY, octaves, seed, |
- &tileSize).release(); |
+ &tileSize); |
case kTurbulence_Type: |
return SkPerlinNoiseShader::MakeTurbulence(freqX, freqY, octaves, seed, |
- &tileSize).release(); |
+ &tileSize); |
default: |
return nullptr; |
} |