Chromium Code Reviews| Index: src/gpu/GrDrawState.h |
| =================================================================== |
| --- src/gpu/GrDrawState.h (revision 11751) |
| +++ src/gpu/GrDrawState.h (working copy) |
| @@ -1014,7 +1014,7 @@ |
| for (int i = 0; i < fColorStageCnt; ++i) { |
| SkNEW_APPEND_TO_TARRAY(&drawState->fColorStages, GrEffectStage, (fStages[i])); |
| } |
| - int coverageStageCnt = fStages.count() - fColorStageCnt; |
| + int coverageStageCnt = int(fStages.count()) - fColorStageCnt; |
|
bsalomon
2013/10/14 15:17:02
I think we conventionally write this cast as (int)
robertphillips
2013/10/14 17:39:26
Done.
|
| drawState->fCoverageStages.reset(); |
| for (int i = 0; i < coverageStageCnt; ++i) { |
| SkNEW_APPEND_TO_TARRAY(&drawState->fCoverageStages, |
| @@ -1023,7 +1023,7 @@ |
| } |
| bool isEqual(const GrDrawState& state) const { |
| - int numCoverageStages = fStages.count() - fColorStageCnt; |
| + int numCoverageStages = int(fStages.count()) - fColorStageCnt; |
| if (fRenderTarget != state.fRenderTarget.get() || |
| fColorStageCnt != state.fColorStages.count() || |
| numCoverageStages != state.fCoverageStages.count() || |