| Index: src/pdf/SkPDFShader.cpp
|
| diff --git a/src/pdf/SkPDFShader.cpp b/src/pdf/SkPDFShader.cpp
|
| index 303212596daca01c3483b0b060d6ec9c99304881..596bbc7d2c6ea7b4802ad3506367f973badff942 100644
|
| --- a/src/pdf/SkPDFShader.cpp
|
| +++ b/src/pdf/SkPDFShader.cpp
|
| @@ -635,7 +635,7 @@ static SkStream* create_pattern_fill_content(int gsIndex, SkRect& bounds) {
|
| * Creates a ExtGState with the SMask set to the luminosityShader in
|
| * luminosity mode. The shader pattern extends to the bbox.
|
| */
|
| -static SkPDFGraphicState* create_smask_graphic_state(
|
| +static SkPDFObject* create_smask_graphic_state(
|
| SkPDFCanon* canon, SkScalar dpi, const SkPDFShader::State& state) {
|
| SkRect bbox;
|
| bbox.set(state.fBBox);
|
| @@ -676,7 +676,7 @@ SkPDFAlphaFunctionShader* SkPDFAlphaFunctionShader::Create(
|
|
|
| // Create resource dict with alpha graphics state as G0 and
|
| // pattern shader as P0, then write content stream.
|
| - SkAutoTUnref<SkPDFGraphicState> alphaGs(
|
| + SkAutoTUnref<SkPDFObject> alphaGs(
|
| create_smask_graphic_state(canon, dpi, state));
|
|
|
| SkPDFAlphaFunctionShader* alphaFunctionShader =
|
|
|