aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkShader.h
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-09-05 21:54:04 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-09-05 21:54:04 +0000
commit4ec4cf93b7822e0000102b165852ad623afcb84e (patch)
tree868a31e7e8697776ecd0861ed16b495d49f49d86 /include/core/SkShader.h
parent818f73e9cf50c0796900f0fe8c55aa2b4ed80516 (diff)
alpha threshold bitmap shader
R=reed@google.com Author: bsalomon@google.com Review URL: https://chromiumcodereview.appspot.com/23707019 git-svn-id: http://skia.googlecode.com/svn/trunk@11122 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core/SkShader.h')
-rw-r--r--include/core/SkShader.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/core/SkShader.h b/include/core/SkShader.h
index e1cab96795..2632830ef0 100644
--- a/include/core/SkShader.h
+++ b/include/core/SkShader.h
@@ -318,9 +318,11 @@ public:
virtual GradientType asAGradient(GradientInfo* info) const;
/**
- * If the shader subclass has a GrEffect implementation, this installs an effect on the stage.
- * The GrContext may be used by the effect to create textures. The GPU device does not call
- * setContext. Instead we pass the paint here in case the shader needs paint info.
+ * If the shader subclass has a GrEffect implementation, this resturns the effect to install.
+ * The incoming color to the effect has r=g=b=a all extracted from the SkPaint's alpha.
+ * The output color should be the computed SkShader premul color modulated by the incoming
+ * color. The GrContext may be used by the effect to create textures. The GPU device does not
+ * call setContext. Instead we pass the SkPaint here in case the shader needs paint info.
*/
virtual GrEffectRef* asNewEffect(GrContext* context, const SkPaint& paint) const;