aboutsummaryrefslogtreecommitdiffhomepage
path: root/gn
diff options
context:
space:
mode:
authorGravatar Hal Canary <halcanary@google.com>2017-07-12 13:10:23 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-07-12 20:41:41 +0000
commit7cbf5e3e03754694157891e290ff30109b8e7583 (patch)
tree8ad4ad88c04a5ddbd920f3d8a2ee4478de2a7fcf /gn
parent5769dd2c9ad9443b8cf2d62748d5747e547c7ad5 (diff)
SkPDF: simplify drawImage/Bitmap/Sprite code.
- SkImageSubset becomes SkKeyedImage - SkPDFCanvas::onDraw{Bitmap, Image} go away - Remove SkPDFCanvas: base classes now do the right thing. - SkPDFDevice::draw{Bitmap,Image}{Rect,}() simplified - 244 fewer SLOC. All but a few PDFs are identical, those rasterize almost the same. Change-Id: I3ceb3b8935c689719cedf1ad544b0407b5c1733e Reviewed-on: https://skia-review.googlesource.com/22218 Commit-Queue: Hal Canary <halcanary@google.com> Reviewed-by: Ben Wagner <bungeman@google.com>
Diffstat (limited to 'gn')
-rw-r--r--gn/pdf.gni5
1 files changed, 3 insertions, 2 deletions
diff --git a/gn/pdf.gni b/gn/pdf.gni
index 6b140e0839..355c27a4a8 100644
--- a/gn/pdf.gni
+++ b/gn/pdf.gni
@@ -12,12 +12,12 @@ skia_pdf_sources = [
"$_src/pdf/SkDeflate.h",
"$_src/pdf/SkJpegInfo.cpp",
"$_src/pdf/SkJpegInfo.h",
+ "$_src/pdf/SkKeyedImage.cpp",
+ "$_src/pdf/SkKeyedImage.h",
"$_src/pdf/SkPDFBitmap.cpp",
"$_src/pdf/SkPDFBitmap.h",
"$_src/pdf/SkPDFCanon.cpp",
"$_src/pdf/SkPDFCanon.h",
- "$_src/pdf/SkPDFCanvas.cpp",
- "$_src/pdf/SkPDFCanvas.h",
"$_src/pdf/SkPDFConvertType1FontStream.cpp",
"$_src/pdf/SkPDFConvertType1FontStream.h",
"$_src/pdf/SkPDFDevice.cpp",
@@ -46,4 +46,5 @@ skia_pdf_sources = [
"$_src/pdf/SkPDFTypes.h",
"$_src/pdf/SkPDFUtils.cpp",
"$_src/pdf/SkPDFUtils.h",
+ "$_src/pdf/SkScopeExit.h",
]