Index: include/gpu/GrInvariantOutput.h |
diff --git a/include/gpu/GrInvariantOutput.h b/include/gpu/GrInvariantOutput.h |
index 83deac39f7ab102f51e9202f931412a6e012ed82..8cf4bf59c3244d2552e45b926ade4535061ee1b4 100644 |
--- a/include/gpu/GrInvariantOutput.h |
+++ b/include/gpu/GrInvariantOutput.h |
@@ -222,11 +222,6 @@ public: |
if (GetAlphaAndCheckSingleChannel(color, &a)) { |
fIsSingleComponent = true; |
} |
- } else if (kA_GrColorComponentFlag & fValidFlags) { |
- // Assuming fColor is premul means if a is 0 the color must be all 0s. |
- if (!GrColorUnpackA(fColor)) { |
- this->internalSetToTransparentBlack(); |
- } |
} |
SkDEBUGCODE(this->validate()); |
} |
@@ -249,6 +244,7 @@ public: |
GrColor color() const { return fColor; } |
GrColorComponentFlags validFlags() const { return fValidFlags; } |
+ bool willUseInputColor() const { return fWillUseInputColor; } |
/** |
* If isSingleComponent is true, then the flag values for r, g, b, and a must all be the |
@@ -308,7 +304,6 @@ private: |
bool isSingleComponent() const { return fIsSingleComponent; } |
- bool willUseInputColor() const { return fWillUseInputColor; } |
void resetWillUseInputColor() { fWillUseInputColor = true; } |
bool allStagesMulInput() const { return !fNonMulStageFound; } |