Index: src/core/SkColorShader.h |
diff --git a/src/core/SkColorShader.h b/src/core/SkColorShader.h |
index 00a2bb61f0582cfd22bbfe18e6abf9f0cb294f19..6e4e42ad95479a2eb0daffdad7e5857676158426 100644 |
--- a/src/core/SkColorShader.h |
+++ b/src/core/SkColorShader.h |
@@ -25,6 +25,10 @@ |
explicit SkColorShader(SkColor c); |
bool isOpaque() const override; |
+ |
+ size_t contextSize(const ContextRec&) const override { |
+ return sizeof(ColorShaderContext); |
+ } |
class ColorShaderContext : public SkShader::Context { |
public: |
@@ -57,9 +61,6 @@ |
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; |