diff options
author | Hal Canary <halcanary@google.com> | 2017-07-12 13:10:23 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-07-12 20:41:41 +0000 |
commit | 7cbf5e3e03754694157891e290ff30109b8e7583 (patch) | |
tree | 8ad4ad88c04a5ddbd920f3d8a2ee4478de2a7fcf /site/dev | |
parent | 5769dd2c9ad9443b8cf2d62748d5747e547c7ad5 (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 'site/dev')
-rw-r--r-- | site/dev/design/pdftheory.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/site/dev/design/pdftheory.md b/site/dev/design/pdftheory.md index e07f014665..a5521ba864 100644 --- a/site/dev/design/pdftheory.md +++ b/site/dev/design/pdftheory.md @@ -42,7 +42,7 @@ to use SkPDF as a client calling Skia's public API. ----------------------------------------------------------------------------------- SkPDFDevice is the main interface to the PDF backend. This child of -SkDevice can be set on an SkPDFCanvas and drawn to. Once drawing to +SkDevice can be set on an SkCanvas and drawn to. Once drawing to the canvas is complete (SkDocument::onEndPage() is called), the device's content and resouces are added to the SkPDFDocument that owns the device. A new SkPDFDevice should be created for each page or |