Index: src/gpu/GrDrawState.cpp |
diff --git a/src/gpu/GrDrawState.cpp b/src/gpu/GrDrawState.cpp |
index 7c68543479f1a898396fd3487aca9ee2f824ad0b..ab800d24e7c1c74268a02312caec8dc3d7b65d4a 100644 |
--- a/src/gpu/GrDrawState.cpp |
+++ b/src/gpu/GrDrawState.cpp |
@@ -32,16 +32,12 @@ void GrDrawState::setFromPaint(const GrPaint& paint, const SkMatrix& vm, GrRende |
fColorStages.reset(); |
fCoverageStages.reset(); |
- for (int i = 0; i < GrPaint::kMaxColorStages; ++i) { |
- if (paint.isColorStageEnabled(i)) { |
- fColorStages.push_back(paint.getColorStage(i)); |
- } |
+ for (int i = 0; i < paint.numColorStages(); ++i) { |
+ fColorStages.push_back(paint.getColorStage(i)); |
} |
- for (int i = 0; i < GrPaint::kMaxCoverageStages; ++i) { |
- if (paint.isCoverageStageEnabled(i)) { |
- fCoverageStages.push_back(paint.getCoverageStage(i)); |
- } |
+ for (int i = 0; i < paint.numCoverageStages(); ++i) { |
+ fCoverageStages.push_back(paint.getCoverageStage(i)); |
} |
this->setRenderTarget(rt); |