aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkColorShader.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/core/SkColorShader.h')
-rw-r--r--include/core/SkColorShader.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/core/SkColorShader.h b/include/core/SkColorShader.h
index f993959715..be59627bc6 100644
--- a/include/core/SkColorShader.h
+++ b/include/core/SkColorShader.h
@@ -27,8 +27,6 @@ public:
virtual bool isOpaque() const SK_OVERRIDE;
- virtual SkShader::Context* createContext(const ContextRec&, void* storage) const SK_OVERRIDE;
-
virtual size_t contextSize() const SK_OVERRIDE {
return sizeof(ColorShaderContext);
}
@@ -64,6 +62,7 @@ public:
protected:
SkColorShader(SkReadBuffer&);
virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE;
+ virtual Context* onCreateContext(const ContextRec&, void* storage) const SK_OVERRIDE;
private:
SkColor fColor; // ignored if fInheritColor is true