| Index: src/core/SkBlitter.cpp
|
| diff --git a/src/core/SkBlitter.cpp b/src/core/SkBlitter.cpp
|
| index 41d6071d6eb0581bc42bc0fab782659193158598..804bc813d6054a64b75407d1a590288571968733 100644
|
| --- a/src/core/SkBlitter.cpp
|
| +++ b/src/core/SkBlitter.cpp
|
| @@ -592,10 +592,10 @@ public:
|
| SkSafeUnref(fProxy);
|
| }
|
|
|
| - size_t contextSize() const override {
|
| + size_t contextSize(const ContextRec& rec) const override {
|
| size_t size = sizeof(Sk3DShaderContext);
|
| if (fProxy) {
|
| - size += fProxy->contextSize();
|
| + size += fProxy->contextSize(rec);
|
| }
|
| return size;
|
| }
|
| @@ -876,7 +876,7 @@ SkBlitter* SkBlitter::Choose(const SkPixmap& device,
|
| SkShader::Context* shaderContext = nullptr;
|
| if (shader) {
|
| SkShader::ContextRec rec(*paint, matrix, nullptr);
|
| - size_t contextSize = shader->contextSize();
|
| + size_t contextSize = shader->contextSize(rec);
|
| if (contextSize) {
|
| // Try to create the ShaderContext
|
| void* storage = allocator->reserveT<SkShader::Context>(contextSize);
|
|
|