Index: src/effects/gradients/SkLinearGradient.cpp |
diff --git a/src/effects/gradients/SkLinearGradient.cpp b/src/effects/gradients/SkLinearGradient.cpp |
index 40503c96f18fbd219003da778e28c4a048d00587..cc8875cf8e83c69b939f7c268a07270b9a7d25c2 100644 |
--- a/src/effects/gradients/SkLinearGradient.cpp |
+++ b/src/effects/gradients/SkLinearGradient.cpp |
@@ -88,10 +88,10 @@ |
buffer.writePoint(fEnd); |
} |
-size_t SkLinearGradient::onContextSize(const ContextRec& rec) const { |
+size_t SkLinearGradient::contextSize(const ContextRec& rec) const { |
return use_4f_context(rec, fGradFlags) |
- ? SkAlign16(sizeof(LinearGradient4fContext)) |
- : SkAlign16(sizeof(LinearGradientContext)); |
+ ? sizeof(LinearGradient4fContext) |
+ : sizeof(LinearGradientContext); |
} |
SkShader::Context* SkLinearGradient::onCreateContext(const ContextRec& rec, void* storage) const { |