Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(138)

Unified Diff: src/pdf/SkPDFDevice.h

Issue 1802963002: SkPDF: SkPDFDevice has ptr to SkPDFDocument (Closed) Base URL: https://skia.googlesource.com/skia.git@SkPdfBigSerializeRefactor
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/pdf/SkPDFDevice.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pdf/SkPDFDevice.h
diff --git a/src/pdf/SkPDFDevice.h b/src/pdf/SkPDFDevice.h
index b1345a8e3fbb8e7c85069e62703d649486382d14..8747b081f1be8e54f3834cedac55ccf8d3d3c47d 100644
--- a/src/pdf/SkPDFDevice.h
+++ b/src/pdf/SkPDFDevice.h
@@ -25,6 +25,7 @@
class SkPDFArray;
class SkPDFCanon;
class SkPDFDevice;
+class SkPDFDocument;
class SkPDFDict;
class SkPDFFont;
class SkPDFFormXObject;
@@ -59,20 +60,20 @@ public:
* while rendering, and it would be slower to be processed
* or sent online or to printer. A good choice is
* SK_ScalarDefaultRasterDPI(72.0f).
- * @param SkPDFCanon. Should be non-null, and shared by all
+ * @param SkPDFDocument. Should be non-null, and shared by all
* devices in a document.
tomhudson 2016/03/21 14:49:48 This comment doesn't explain to me why. In the old
hal.canary 2016/03/21 21:06:02 better? @param SkPDFDocument. A non-null pointer
tomhudson 2016/03/21 21:09:56 Yes, thanks.
*/
static SkPDFDevice* Create(SkISize pageSize,
SkScalar rasterDpi,
- SkPDFCanon* canon) {
- return new SkPDFDevice(pageSize, rasterDpi, canon, true);
+ SkPDFDocument* doc) {
+ return new SkPDFDevice(pageSize, rasterDpi, doc, true);
}
/** Create a PDF drawing context without fipping the y-axis. */
static SkPDFDevice* CreateUnflipped(SkISize pageSize,
SkScalar rasterDpi,
- SkPDFCanon* canon) {
- return new SkPDFDevice(pageSize, rasterDpi, canon, false);
+ SkPDFDocument* doc) {
+ return new SkPDFDevice(pageSize, rasterDpi, doc, false);
}
virtual ~SkPDFDevice();
@@ -184,7 +185,7 @@ public:
return *(fFontGlyphUsage.get());
}
- SkPDFCanon* getCanon() const { return fCanon; }
+ SkPDFCanon* getCanon() const;
protected:
const SkBitmap& onAccessBitmap() override {
@@ -261,12 +262,12 @@ private:
SkBitmap fLegacyBitmap;
- SkPDFCanon* fCanon; // Owned by SkDocument_PDF
+ SkPDFDocument* fDocument;
////////////////////////////////////////////////////////////////////////////
SkPDFDevice(SkISize pageSize,
SkScalar rasterDpi,
- SkPDFCanon* canon,
+ SkPDFDocument* doc,
bool flip);
ContentEntry* getLastContentEntry();
« no previous file with comments | « no previous file | src/pdf/SkPDFDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698