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

Unified Diff: src/pdf/SkPDFShader.h

Issue 1802963002: SkPDF: SkPDFDevice has ptr to SkPDFDocument (Closed) Base URL: https://skia.googlesource.com/skia.git@SkPdfBigSerializeRefactor
Patch Set: better explanation 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 | « src/pdf/SkPDFDocument.cpp ('k') | src/pdf/SkPDFShader.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pdf/SkPDFShader.h
diff --git a/src/pdf/SkPDFShader.h b/src/pdf/SkPDFShader.h
index 029966a829cd4532b4b68b0b15abdbe35f63c4e1..a646aef75c1b21238caaf7eaf39939d5b5272475 100644
--- a/src/pdf/SkPDFShader.h
+++ b/src/pdf/SkPDFShader.h
@@ -14,6 +14,7 @@
#include "SkPDFTypes.h"
class SkPDFCanon;
+class SkPDFDocument;
class SkMatrix;
class SkShader;
struct SkIRect;
@@ -42,7 +43,7 @@ public:
* @param rasterScale Additional scale to be applied for early
* rasterization.
*/
- static SkPDFObject* GetPDFShader(SkPDFCanon* canon,
+ static SkPDFObject* GetPDFShader(SkPDFDocument* doc,
SkScalar dpi,
const SkShader& shader,
const SkMatrix& matrix,
@@ -72,7 +73,7 @@ private:
*/
class SkPDFAlphaFunctionShader final : public SkPDFStream {
public:
- static SkPDFAlphaFunctionShader* Create(SkPDFCanon*,
+ static SkPDFAlphaFunctionShader* Create(SkPDFDocument*,
SkScalar dpi,
SkAutoTDelete<SkPDFShader::State>*);
virtual ~SkPDFAlphaFunctionShader();
@@ -86,7 +87,7 @@ private:
class SkPDFImageShader final : public SkPDFStream {
public:
- static SkPDFImageShader* Create(SkPDFCanon*,
+ static SkPDFImageShader* Create(SkPDFDocument*,
SkScalar dpi,
SkAutoTDelete<SkPDFShader::State>*);
virtual ~SkPDFImageShader();
« no previous file with comments | « src/pdf/SkPDFDocument.cpp ('k') | src/pdf/SkPDFShader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698