aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/effects/gradients/SkLinearGradient.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/effects/gradients/SkLinearGradient.h')
-rw-r--r--src/effects/gradients/SkLinearGradient.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/effects/gradients/SkLinearGradient.h b/src/effects/gradients/SkLinearGradient.h
index 33ddfc2f9e..f0ce49b8b3 100644
--- a/src/effects/gradients/SkLinearGradient.h
+++ b/src/effects/gradients/SkLinearGradient.h
@@ -33,8 +33,6 @@ public:
SkLinearGradient(const SkPoint pts[2], const Descriptor&);
- size_t contextSize(const ContextRec&) const override;
-
class LinearGradientContext : public SkGradientShaderBase::GradientShaderBaseContext {
public:
LinearGradientContext(const SkLinearGradient&, const ContextRec&);
@@ -71,6 +69,7 @@ public:
protected:
SkLinearGradient(SkReadBuffer& buffer);
void flatten(SkWriteBuffer& buffer) const override;
+ size_t onContextSize(const ContextRec&) const override;
Context* onCreateContext(const ContextRec&, void* storage) const override;
private: