OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #include "GrProcOptInfo.h" | 8 #include "GrProcOptInfo.h" |
9 | 9 |
10 #include "GrGeometryProcessor.h" | 10 #include "GrGeometryProcessor.h" |
11 #include "GrProcessorStage.h" | 11 #include "GrFragmentStage.h" |
12 | 12 |
13 void GrProcOptInfo::calcWithInitialValues(const GrFragmentStage* stages, | 13 void GrProcOptInfo::calcWithInitialValues(const GrFragmentStage* stages, |
14 int stageCount, | 14 int stageCount, |
15 GrColor startColor, | 15 GrColor startColor, |
16 GrColorComponentFlags flags, | 16 GrColorComponentFlags flags, |
17 bool areCoverageStages, | 17 bool areCoverageStages, |
18 const GrGeometryProcessor* gp) { | 18 const GrGeometryProcessor* gp) { |
19 fInOut.reset(startColor, flags, areCoverageStages); | 19 fInOut.reset(startColor, flags, areCoverageStages); |
20 fFirstEffectStageIndex = 0; | 20 fFirstEffectStageIndex = 0; |
21 fInputColorIsUsed = true; | 21 fInputColorIsUsed = true; |
(...skipping 25 matching lines...) Expand all Loading... |
47 fInputColor = fInOut.color(); | 47 fInputColor = fInOut.color(); |
48 fInputColorIsUsed = true; | 48 fInputColorIsUsed = true; |
49 fRemoveVertexAttrib = true; | 49 fRemoveVertexAttrib = true; |
50 // Since we are clearing all previous color stages we are in a state
where we have found | 50 // Since we are clearing all previous color stages we are in a state
where we have found |
51 // zero stages that don't multiply the inputColor. | 51 // zero stages that don't multiply the inputColor. |
52 fInOut.resetNonMulStageFound(); | 52 fInOut.resetNonMulStageFound(); |
53 fReadsDst = false; // Reset this since we don't care if previous sta
ges read dst | 53 fReadsDst = false; // Reset this since we don't care if previous sta
ges read dst |
54 } | 54 } |
55 } | 55 } |
56 } | 56 } |
OLD | NEW |