OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 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 "GrPipelineBuilder.h" | 8 #include "GrPipelineBuilder.h" |
9 | 9 |
| 10 #include "GrBatch.h" |
10 #include "GrBlend.h" | 11 #include "GrBlend.h" |
11 #include "GrPaint.h" | 12 #include "GrPaint.h" |
12 #include "GrPipeline.h" | 13 #include "GrPipeline.h" |
13 #include "GrProcOptInfo.h" | 14 #include "GrProcOptInfo.h" |
14 #include "GrXferProcessor.h" | 15 #include "GrXferProcessor.h" |
15 #include "effects/GrPorterDuffXferProcessor.h" | 16 #include "effects/GrPorterDuffXferProcessor.h" |
16 | 17 |
17 GrPipelineBuilder::GrPipelineBuilder() | 18 GrPipelineBuilder::GrPipelineBuilder() |
18 : fFlagBits(0x0) | 19 : fFlagBits(0x0) |
19 , fDrawFace(kBoth_DrawFace) | 20 , fDrawFace(kBoth_DrawFace) |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 void GrPipelineBuilder::calcCoverageInvariantOutput(GrColor coverage) const { | 176 void GrPipelineBuilder::calcCoverageInvariantOutput(GrColor coverage) const { |
176 if (!fCoverageProcInfoValid || coverage != fCoverageCache) { | 177 if (!fCoverageProcInfoValid || coverage != fCoverageCache) { |
177 GrColorComponentFlags flags = kRGBA_GrColorComponentFlags; | 178 GrColorComponentFlags flags = kRGBA_GrColorComponentFlags; |
178 fCoverageProcInfo.calcWithInitialValues(fCoverageStages.begin(), | 179 fCoverageProcInfo.calcWithInitialValues(fCoverageStages.begin(), |
179 this->numCoverageFragmentStages(
), coverage, flags, | 180 this->numCoverageFragmentStages(
), coverage, flags, |
180 true); | 181 true); |
181 fCoverageProcInfoValid = true; | 182 fCoverageProcInfoValid = true; |
182 fCoverageCache = coverage; | 183 fCoverageCache = coverage; |
183 } | 184 } |
184 } | 185 } |
OLD | NEW |