diff options
Diffstat (limited to 'src/core/SkLocalMatrixShader.h')
-rw-r--r-- | src/core/SkLocalMatrixShader.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/core/SkLocalMatrixShader.h b/src/core/SkLocalMatrixShader.h index a108259461..9c6a526f7b 100644 --- a/src/core/SkLocalMatrixShader.h +++ b/src/core/SkLocalMatrixShader.h @@ -23,6 +23,11 @@ public: return fProxyShader->contextSize(); } + virtual BitmapType asABitmap(SkBitmap* bitmap, SkMatrix* matrix, + TileMode* mode) const override { + return fProxyShader->asABitmap(bitmap, matrix, mode); + } + GradientType asAGradient(GradientInfo* info) const override { return fProxyShader->asAGradient(info); } @@ -53,10 +58,6 @@ protected: void flatten(SkWriteBuffer&) const override; Context* onCreateContext(const ContextRec&, void*) const override; - bool onIsABitmap(SkBitmap* bitmap, SkMatrix* matrix, TileMode* mode) const override { - return fProxyShader->isABitmap(bitmap, matrix, mode); - } - private: SkAutoTUnref<SkShader> fProxyShader; |