| Index: src/pdf/SkPDFGraphicState.cpp
|
| diff --git a/src/pdf/SkPDFGraphicState.cpp b/src/pdf/SkPDFGraphicState.cpp
|
| index 0752eac32834bb3f5f67545b125f454414249791..17129bb79d46e5a2edc5e2f92b4e512620d909c5 100644
|
| --- a/src/pdf/SkPDFGraphicState.cpp
|
| +++ b/src/pdf/SkPDFGraphicState.cpp
|
| @@ -135,10 +135,8 @@ sk_sp<SkPDFStream> SkPDFGraphicState::MakeInvertFunction() {
|
|
|
| static const char psInvert[] = "{1 exch sub}";
|
| // Do not copy the trailing '\0' into the SkData.
|
| - sk_sp<SkData> psInvertStream(
|
| - SkData::NewWithoutCopy(psInvert, strlen(psInvert)));
|
| -
|
| - auto invertFunction = sk_make_sp<SkPDFStream>(psInvertStream.get());
|
| + auto invertFunction = sk_make_sp<SkPDFStream>(
|
| + SkData::MakeWithoutCopy(psInvert, strlen(psInvert)));
|
| invertFunction->insertInt("FunctionType", 4);
|
| invertFunction->insertObject("Domain", domainAndRange);
|
| invertFunction->insertObject("Range", std::move(domainAndRange));
|
|
|