src/pdf: code cleanup
authorHal Canary <halcanary@google.com>
Mon, 17 Apr 2017 20:30:06 +0000 (16:30 -0400)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Thu, 4 May 2017 13:08:29 +0000 (13:08 +0000)
commit5c1b360a89f85accd7dc446670f6f062c73e7e77
treea15f476b39778027f982d753719487bc4a6d34ca
parentbc6e5ff7cfbacc28659c0aecbe9f2989cad80336
src/pdf: code cleanup

  * SkPDFCanon: remove unnecessary abstraction
  * Make use of SkTHashMap<K, sk_sp<T>>.
  * Remove unncessary struct constructors.
  * More factory fns return sk_sp<T>
  * SkPDFUtility::GetCachedT<T> factored out.

Change-Id: I4055a131b43fe2588fd042b769cd09fff8a3466c
Reviewed-on: https://skia-review.googlesource.com/13655
Reviewed-by: Ben Wagner <bungeman@google.com>
Commit-Queue: Hal Canary <halcanary@google.com>
13 files changed:
src/pdf/SkPDFCanon.cpp
src/pdf/SkPDFCanon.h
src/pdf/SkPDFDevice.cpp
src/pdf/SkPDFDevice.h
src/pdf/SkPDFDocument.cpp
src/pdf/SkPDFFont.cpp
src/pdf/SkPDFFont.h
src/pdf/SkPDFGraphicState.cpp
src/pdf/SkPDFGraphicState.h
src/pdf/SkPDFShader.cpp
src/pdf/SkPDFTypes.cpp
src/pdf/SkPDFTypes.h
src/pdf/SkPDFUtils.h