diff options
author | Hal Canary <halcanary@google.com> | 2017-06-28 13:14:03 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-06-28 19:09:09 +0000 |
commit | c02de0b844fdb04e28e45ed5bbdd5eb0935c42d2 (patch) | |
tree | 7af66bdd955540e1040b4d3fead2027bb433031c /src/pdf/SkPDFUtils.h | |
parent | 89cd35795f7cc3042084fb14fec27102c6e67f2c (diff) |
SkPDF: Clean up
- Use clearMaskOnGraphicState()
- SkPDFGraphicState::MakeNoSmaskGraphicState now moved to only caller.
- Get rid of clunky SkPDFUtils::GetCachedT
Change-Id: If76a1e915fc31e3ce2654fbe620ff44c1820c0e7
Reviewed-on: https://skia-review.googlesource.com/21142
Reviewed-by: Ben Wagner <bungeman@google.com>
Commit-Queue: Hal Canary <halcanary@google.com>
Diffstat (limited to 'src/pdf/SkPDFUtils.h')
-rw-r--r-- | src/pdf/SkPDFUtils.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/pdf/SkPDFUtils.h b/src/pdf/SkPDFUtils.h index 58453ae4d1..4d0447c194 100644 --- a/src/pdf/SkPDFUtils.h +++ b/src/pdf/SkPDFUtils.h @@ -103,15 +103,6 @@ inline void WriteUTF16beHex(SkDynamicMemoryWStream* wStream, SkUnichar utf32) { } } -template <class T> -static sk_sp<T> GetCachedT(sk_sp<T>* cachedT, sk_sp<T> (*makeNewT)()) { - if (*cachedT) { - return *cachedT; - } - *cachedT = (*makeNewT)(); - return *cachedT; -} - inline SkMatrix GetShaderLocalMatrix(const SkShader* shader) { SkMatrix localMatrix; if (sk_sp<SkShader> s = shader->makeAsALocalMatrixShader(&localMatrix)) { |