Index: src/pdf/SkPDFShader.cpp |
diff --git a/src/pdf/SkPDFShader.cpp b/src/pdf/SkPDFShader.cpp |
index 890bf447d5c46a8b0e4943ab0704bfef233195d7..4640593df4219aa0f3a1adc231ed6f6a8a59cb48 100644 |
--- a/src/pdf/SkPDFShader.cpp |
+++ b/src/pdf/SkPDFShader.cpp |
@@ -763,7 +763,7 @@ SkPDFGraphicState* SkPDFAlphaFunctionShader::CreateSMaskGraphicState() { |
SkPDFShader::GetPDFShaderByState( |
fState->CreateAlphaToLuminosityState())); |
- SkAutoTUnref<SkStream> alphaStream(create_pattern_fill_content(-1, bbox)); |
+ SkAutoTDelete<SkStream> alphaStream(create_pattern_fill_content(-1, bbox)); |
SkAutoTUnref<SkPDFResourceDict> |
resources(get_gradient_resource_dict(luminosityShader, NULL)); |
@@ -790,7 +790,7 @@ SkPDFAlphaFunctionShader::SkPDFAlphaFunctionShader(SkPDFShader::State* state) |
fResourceDict.reset( |
get_gradient_resource_dict(fColorShader.get(), alphaGs.get())); |
- SkAutoTUnref<SkStream> colorStream( |
+ SkAutoTDelete<SkStream> colorStream( |
create_pattern_fill_content(0, bbox)); |
setData(colorStream.get()); |
@@ -1156,7 +1156,7 @@ SkPDFImageShader::SkPDFImageShader(SkPDFShader::State* state) : fState(state) { |
} |
// Put the canvas into the pattern stream (fContent). |
- SkAutoTUnref<SkStream> content(pattern.content()); |
+ SkAutoTDelete<SkStream> content(pattern.content()); |
setData(content.get()); |
SkPDFResourceDict* resourceDict = pattern.getResourceDict(); |
resourceDict->getReferencedResources(fResources, &fResources, false); |