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

Unified Diff: src/pdf/SkPDFShader.h

Issue 862113004: Simplify SkPDFShader class. Now invalid objects are never created. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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/SkPDFShader.cpp » ('j') | src/pdf/SkPDFShader.cpp » ('J')
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 e0abff8f68388324128cbe15bfebfc4d49540bc2..a9bfe7ac35949ee3e763495834763b5e7d76d0b8 100644
--- a/src/pdf/SkPDFShader.h
+++ b/src/pdf/SkPDFShader.h
@@ -50,19 +50,15 @@ public:
protected:
SkAutoTDelete<const State> fShaderState;
+ SkPDFObject* fSelf;
mtklein 2015/01/22 15:54:30 This is just aching for a comment. My first thoug
// This is an internal method.
// CanonicalShadersMutex() should already be acquired.
// This also takes ownership of shaderState.
static SkPDFObject* GetPDFShaderByState(State* shaderState);
- static SkPDFObject* AddToCanonIfValid(SkPDFShader*);
- static void RemoveFromCanonIfValid(SkPDFShader*);
- SkPDFShader(State*);
- virtual ~SkPDFShader();
-
- virtual bool isValid() = 0;
- virtual SkPDFObject* toPDFObject() = 0;
+ SkPDFShader(State* s);
+ ~SkPDFShader();
};
#endif
« no previous file with comments | « no previous file | src/pdf/SkPDFShader.cpp » ('j') | src/pdf/SkPDFShader.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698