diff options
Diffstat (limited to 'include/core/SkShader.h')
-rw-r--r-- | include/core/SkShader.h | 8 |
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; |