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

Unified Diff: src/pdf/SkPDFCanon.h

Issue 873543002: More changes to SkPDFShader to eliminate multiple inheritance! (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 5 years, 11 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/SkPDFCanon.cpp » ('j') | src/pdf/SkPDFCanon.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pdf/SkPDFCanon.h
diff --git a/src/pdf/SkPDFCanon.h b/src/pdf/SkPDFCanon.h
index 5a06a465dd1582eaa3b26b41b369540bd51cade1..8e89424084df2afb23bc0662766c5a6032fd0bd8 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;
};
« no previous file with comments | « no previous file | src/pdf/SkPDFCanon.cpp » ('j') | src/pdf/SkPDFCanon.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698