diff options
author | reed <reed@google.com> | 2014-09-11 08:42:36 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-09-11 08:42:36 -0700 |
commit | 33a30503d76fdd989358cedd78445ba96bb809dd (patch) | |
tree | f566369edfc551922e1ed3e101020a3d877f33c8 /src/pdf/SkPDFGraphicState.cpp | |
parent | aa90d00f14414db39b3d990d8d5fd594d6eadc6e (diff) |
SkData can allocate room for its contents in the same block
BUG=skia:
R=bungeman@google.com, mtklein@google.com
Author: reed@google.com
Review URL: https://codereview.chromium.org/560653004
Diffstat (limited to 'src/pdf/SkPDFGraphicState.cpp')
-rw-r--r-- | src/pdf/SkPDFGraphicState.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pdf/SkPDFGraphicState.cpp b/src/pdf/SkPDFGraphicState.cpp index bd8afe0684..7664ed699b 100644 --- a/src/pdf/SkPDFGraphicState.cpp +++ b/src/pdf/SkPDFGraphicState.cpp @@ -123,7 +123,7 @@ SkPDFObject* SkPDFGraphicState::GetInvertFunction() { static const char psInvert[] = "{1 exch sub}"; // Do not copy the trailing '\0' into the SkData. SkAutoTUnref<SkData> psInvertStream( - SkData::NewWithCopy(psInvert, strlen(psInvert))); + SkData::NewWithoutCopy(psInvert, strlen(psInvert))); invertFunction = new SkPDFStream(psInvertStream.get()); invertFunction->insertInt("FunctionType", 4); |