aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/shaders/SkShaderBase.h
diff options
context:
space:
mode:
authorGravatar Mike Reed <reed@google.com>2017-08-07 12:36:20 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-08-07 18:46:40 +0000
commit8aeec29bec673e7a3585625dc48e00e51897d474 (patch)
tree6b193d9a300aea3cf08658385e3a88b72cdb026a /src/shaders/SkShaderBase.h
parent0f5505bfa2c5c069b5279745bb64a6e3e9f4d15a (diff)
simplify shaderbase -- remove shaderproc -- no measurable speed diff
Bug: skia: Change-Id: Id355e3e480847fe78f904735e59353c4eb3ba2bb Reviewed-on: https://skia-review.googlesource.com/31560 Reviewed-by: Florin Malita <fmalita@chromium.org> Commit-Queue: Mike Reed <reed@google.com>
Diffstat (limited to 'src/shaders/SkShaderBase.h')
-rw-r--r--src/shaders/SkShaderBase.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/shaders/SkShaderBase.h b/src/shaders/SkShaderBase.h
index 9356553c09..783fff4db5 100644
--- a/src/shaders/SkShaderBase.h
+++ b/src/shaders/SkShaderBase.h
@@ -98,13 +98,6 @@ public:
virtual void shadeSpan4f(int x, int y, SkPM4f[], int count);
- /**
- * The const void* ctx is only const because all the implementations are const.
- * This can be changed to non-const if a new shade proc needs to change the ctx.
- */
- typedef void (*ShadeProc)(const void* ctx, int x, int y, SkPMColor[], int count);
- virtual ShadeProc asAShadeProc(void** ctx);
-
// Notification from blitter::blitMask in case we need to see the non-alpha channels
virtual void set3DMask(const SkMask*) {}