Index: src/core/SkPictureShader.cpp |
diff --git a/src/core/SkPictureShader.cpp b/src/core/SkPictureShader.cpp |
index 44f6ef10b59254019fc0f0fd2804a2a967b0e82b..8f6d43f862992eccd5cb4e37ccbb27d36d4cab6d 100644 |
--- a/src/core/SkPictureShader.cpp |
+++ b/src/core/SkPictureShader.cpp |
@@ -237,7 +237,7 @@ SkShader* SkPictureShader::refBitmapShader(const SkMatrix& viewMatrix, const SkM |
return tileShader.detach(); |
} |
-size_t SkPictureShader::contextSize() const { |
+size_t SkPictureShader::contextSize(const ContextRec&) const { |
return sizeof(PictureShaderContext); |
} |
@@ -266,7 +266,7 @@ SkPictureShader::PictureShaderContext::PictureShaderContext( |
: INHERITED(shader, rec) |
, fBitmapShader(SkRef(bitmapShader)) |
{ |
- fBitmapShaderContextStorage = sk_malloc_throw(bitmapShader->contextSize()); |
+ fBitmapShaderContextStorage = sk_malloc_throw(bitmapShader->contextSize(rec)); |
fBitmapShaderContext = bitmapShader->createContext(rec, fBitmapShaderContextStorage); |
//if fBitmapShaderContext is null, we are invalid |
} |