diff options
author | 2014-07-07 15:11:31 -0700 | |
---|---|---|
committer | 2014-07-07 15:11:31 -0700 | |
commit | 2011fe9cdfa63b83489a146cea6a724cede352c8 (patch) | |
tree | 200081e467bb69640fc811733b35d6559403b938 /include/gpu/GrPaint.h | |
parent | 24dcac2140a7cca111c7f1bd44b44541644887a3 (diff) |
Make GrDrawState and GrPaint take GrEffect* instead of GrEffectRef*.
Make Sk-effect virtuals produce GrEffect* rather than GrEffectRef*
Make GrEffectRef a typedef for GrEffect.
R=robertphillips@google.com
Author: bsalomon@google.com
Review URL: https://codereview.chromium.org/377503004
Diffstat (limited to 'include/gpu/GrPaint.h')
-rw-r--r-- | include/gpu/GrPaint.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/gpu/GrPaint.h b/include/gpu/GrPaint.h index db9b8cc2a6..20dec35b5b 100644 --- a/include/gpu/GrPaint.h +++ b/include/gpu/GrPaint.h @@ -87,9 +87,9 @@ public: /** * Appends an additional color effect to the color computation. */ - const GrEffectRef* addColorEffect(const GrEffectRef* effect, int attr0 = -1, int attr1 = -1) { + const GrEffect* addColorEffect(const GrEffect* effect, int attr0 = -1, int attr1 = -1) { SkASSERT(NULL != effect); - if (!(*effect)->willUseInputColor()) { + if (!effect->willUseInputColor()) { fColorStages.reset(); } SkNEW_APPEND_TO_TARRAY(&fColorStages, GrEffectStage, (effect, attr0, attr1)); @@ -99,9 +99,9 @@ public: /** * Appends an additional coverage effect to the coverage computation. */ - const GrEffectRef* addCoverageEffect(const GrEffectRef* effect, int attr0 = -1, int attr1 = -1) { + const GrEffect* addCoverageEffect(const GrEffect* effect, int attr0 = -1, int attr1 = -1) { SkASSERT(NULL != effect); - if (!(*effect)->willUseInputColor()) { + if (!effect->willUseInputColor()) { fCoverageStages.reset(); } SkNEW_APPEND_TO_TARRAY(&fCoverageStages, GrEffectStage, (effect, attr0, attr1)); |