diff options
Diffstat (limited to 'include')
-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 4c20605cd7..8eb695cd14 100644 --- a/include/core/SkShader.h +++ b/include/core/SkShader.h @@ -148,6 +148,9 @@ public: */ virtual void shadeSpan(int x, int y, SkPMColor[], int count) = 0; + typedef void (*ShadeProc)(void* ctx, int x, int y, SkPMColor[], int count); + virtual ShadeProc asAShadeProc(void** ctx); + /** * Called only for 16bit devices when getFlags() returns * kOpaqueAlphaFlag | kHasSpan16_Flag |