summaryrefslogtreecommitdiff
path: root/core/SkColorShader.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/SkColorShader.h')
-rw-r--r--core/SkColorShader.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/core/SkColorShader.h b/core/SkColorShader.h
index 9e19a71..f993959 100644
--- a/core/SkColorShader.h
+++ b/core/SkColorShader.h
@@ -27,10 +27,7 @@ public:
virtual bool isOpaque() const SK_OVERRIDE;
- virtual SkShader::Context* createContext(const SkBitmap& device,
- const SkPaint& paint,
- const SkMatrix& matrix,
- void* storage) const SK_OVERRIDE;
+ virtual SkShader::Context* createContext(const ContextRec&, void* storage) const SK_OVERRIDE;
virtual size_t contextSize() const SK_OVERRIDE {
return sizeof(ColorShaderContext);
@@ -38,8 +35,7 @@ public:
class ColorShaderContext : public SkShader::Context {
public:
- ColorShaderContext(const SkColorShader& shader, const SkBitmap& device,
- const SkPaint& paint, const SkMatrix& matrix);
+ ColorShaderContext(const SkColorShader& shader, const ContextRec&);
virtual uint32_t getFlags() const SK_OVERRIDE;
virtual uint8_t getSpan16Alpha() const SK_OVERRIDE;