| Index: src/core/SkShader.cpp
|
| diff --git a/src/core/SkShader.cpp b/src/core/SkShader.cpp
|
| index 4ddd29150b182f13505597e4449f3a046eeb9427..0c542bf20041ab46ae9a4a9e8457129301a090c1 100644
|
| --- a/src/core/SkShader.cpp
|
| +++ b/src/core/SkShader.cpp
|
| @@ -63,6 +63,17 @@ bool SkShader::validContext(const SkBitmap& device,
|
| return this->computeTotalInverse(matrix, totalInverse);
|
| }
|
|
|
| +SkShader::Context* SkShader::createContext(const SkBitmap&, const SkPaint&, const SkMatrix&,
|
| + void* storage) const {
|
| + // should be overridden by subclass
|
| + return NULL;
|
| +}
|
| +
|
| +size_t SkShader::contextSize() const {
|
| + // should be overridden by subclass
|
| + return 0;
|
| +}
|
| +
|
| SkShader::Context::Context(const SkShader& shader, const SkBitmap& device,
|
| const SkPaint& paint, const SkMatrix& matrix)
|
| : fShader(shader)
|
|
|