aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/pdf/SkPDFCanon.h
diff options
context:
space:
mode:
authorGravatar halcanary <halcanary@google.com>2015-01-23 06:17:35 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-01-23 06:17:35 -0800
commit530ea8e24bc88f2d7973c35a703f18c1dafb56dc (patch)
tree2204f5a593d669c1d8da572bb44035720d300b88 /src/pdf/SkPDFCanon.h
parentf803da12cff1d9b6148fea319220351efebfd1e0 (diff)
More changes to SkPDFShader to eliminate multiple inheritance!
Diffstat (limited to 'src/pdf/SkPDFCanon.h')
-rw-r--r--src/pdf/SkPDFCanon.h21
1 files changed, 16 insertions, 5 deletions
diff --git a/src/pdf/SkPDFCanon.h b/src/pdf/SkPDFCanon.h
index 5a06a465dd..8e89424084 100644
--- a/src/pdf/SkPDFCanon.h
+++ b/src/pdf/SkPDFCanon.h
@@ -16,7 +16,6 @@ class SkMatrix;
class SkPDFFont;
class SkPDFGraphicState;
class SkPaint;
-class SkShader;
// This class's fields and methods will eventually become part of
// SkPDFDocument/SkDocument_PDF. For now, it exists as a singleton to
@@ -51,9 +50,17 @@ public:
void addFont(SkPDFFont* font, uint32_t fontID, uint16_t fGlyphID);
void removeFont(SkPDFFont*);
- SkPDFShader* findShader(const SkPDFShader::State&) const;
- void addShader(SkPDFShader*);
- void removeShader(SkPDFShader*);
+ SkPDFFunctionShader* findFunctionShader(const SkPDFShader::State&) const;
+ void addFunctionShader(SkPDFFunctionShader*);
+ void removeFunctionShader(SkPDFFunctionShader*);
+
+ SkPDFAlphaFunctionShader* findAlphaShader(const SkPDFShader::State&) const;
+ void addAlphaShader(SkPDFAlphaFunctionShader*);
+ void removeAlphaShader(SkPDFAlphaFunctionShader*);
+
+ SkPDFImageShader* findImageShader(const SkPDFShader::State&) const;
+ void addImageShader(SkPDFImageShader*);
+ void removeImageShader(SkPDFImageShader*);
SkPDFGraphicState* findGraphicState(const SkPaint&) const;
void addGraphicState(SkPDFGraphicState*);
@@ -67,7 +74,11 @@ private:
};
SkTDArray<FontRec> fFontRecords;
- SkTDArray<SkPDFShader*> fShaderRecords;
+ SkTDArray<SkPDFFunctionShader*> fFunctionShaderRecords;
+
+ SkTDArray<SkPDFAlphaFunctionShader*> fAlphaShaderRecords;
+
+ SkTDArray<SkPDFImageShader*> fImageShaderRecords;
SkTDArray<SkPDFGraphicState*> fGraphicStateRecords;
};