diff options
author | bsalomon <bsalomon@google.com> | 2015-04-15 14:18:34 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-04-15 14:18:34 -0700 |
commit | bed83a66f5fa5821a3a08da32157a6155960b15e (patch) | |
tree | 91c3878d7233b716049d0396d97fd4d60eb38ba8 /include | |
parent | bc0273524b039c45dcea2c1ab5ab379c75486c07 (diff) |
Don't draw if SkShader::asNewFragmentProcessor fails.
BUG=chromium:473156
Review URL: https://codereview.chromium.org/1089063002
Diffstat (limited to 'include')
-rw-r--r-- | include/gpu/SkGr.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/gpu/SkGr.h b/include/gpu/SkGr.h index 026b25685e..c73701e72b 100644 --- a/include/gpu/SkGr.h +++ b/include/gpu/SkGr.h @@ -81,14 +81,14 @@ GrTexture* GrRefCachedBitmapTexture(GrContext*, const SkBitmap&, const GrTexture // an optimization where the color filter can be applied to the SkPaint's // color once while converting to GrPaint and then ignored. TODO: Remove this // bool and use the invariant info to automatically apply the color filter. -void SkPaint2GrPaintNoShader(GrContext* context, GrRenderTarget*, const SkPaint& skPaint, +bool SkPaint2GrPaintNoShader(GrContext* context, GrRenderTarget*, const SkPaint& skPaint, GrColor paintColor, bool constantColor, GrPaint* grPaint); // This function is similar to skPaint2GrPaintNoShader but also converts // skPaint's shader to a GrFragmentProcessor if possible. // constantColor has the same meaning as in skPaint2GrPaintNoShader. -void SkPaint2GrPaintShader(GrContext* context, GrRenderTarget*, const SkPaint& skPaint, - const SkMatrix& viewM, bool constantColor, GrPaint* grPaint); +bool SkPaint2GrPaint(GrContext* context, GrRenderTarget*, const SkPaint& skPaint, + const SkMatrix& viewM, bool constantColor, GrPaint* grPaint); //////////////////////////////////////////////////////////////////////////////// // Classes |