aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkColorShader.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/SkColorShader.h')
-rw-r--r--src/core/SkColorShader.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/core/SkColorShader.h b/src/core/SkColorShader.h
index 6e4e42ad95..00a2bb61f0 100644
--- a/src/core/SkColorShader.h
+++ b/src/core/SkColorShader.h
@@ -26,10 +26,6 @@ public:
bool isOpaque() const override;
- size_t contextSize(const ContextRec&) const override {
- return sizeof(ColorShaderContext);
- }
-
class ColorShaderContext : public SkShader::Context {
public:
ColorShaderContext(const SkColorShader& shader, const ContextRec&);
@@ -61,6 +57,9 @@ protected:
SkColorShader(SkReadBuffer&);
void flatten(SkWriteBuffer&) const override;
Context* onCreateContext(const ContextRec&, void* storage) const override;
+ size_t onContextSize(const ContextRec&) const override {
+ return sizeof(ColorShaderContext);
+ }
bool onAsLuminanceColor(SkColor* lum) const override {
*lum = fColor;
return true;