diff options
Diffstat (limited to 'include/core/SkShader.h')
-rw-r--r-- | include/core/SkShader.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/core/SkShader.h b/include/core/SkShader.h index f8de276c7b..1ae531e2e5 100644 --- a/include/core/SkShader.h +++ b/include/core/SkShader.h @@ -478,6 +478,8 @@ public: */ virtual SkShader* refAsALocalMatrixShader(SkMatrix* localMatrix) const; + void preroll() const { this->onPreroll(); } + SK_TO_STRING_VIRT() SK_DEFINE_FLATTENABLE_TYPE(SkShader) @@ -492,6 +494,7 @@ protected: */ virtual Context* onCreateContext(const ContextRec&, void* storage) const; + virtual void onPreroll() const {} virtual bool onAsLuminanceColor(SkColor*) const { return false; } |