OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 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 #include "GrGLProgramDesc.h" | 7 #include "GrGLProgramDesc.h" |
8 | 8 |
9 #include "GrProcessor.h" | 9 #include "GrProcessor.h" |
10 #include "GrPipeline.h" | 10 #include "GrPipeline.h" |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
175 } | 175 } |
176 | 176 |
177 header->fOutputSwizzle = glslCaps.configOutputSwizzle(rt->config()).asKey(); | 177 header->fOutputSwizzle = glslCaps.configOutputSwizzle(rt->config()).asKey(); |
178 | 178 |
179 if (pipeline.ignoresCoverage()) { | 179 if (pipeline.ignoresCoverage()) { |
180 header->fIgnoresCoverage = 1; | 180 header->fIgnoresCoverage = 1; |
181 } else { | 181 } else { |
182 header->fIgnoresCoverage = 0; | 182 header->fIgnoresCoverage = 0; |
183 } | 183 } |
184 | 184 |
185 if (pipeline.usesDistanceVectorField()) { | |
egdaniel
2016/07/12 13:46:42
I know I said we should add this to the key here,
dvonbeck
2016/07/13 15:17:13
The GeoProc?
dvonbeck
2016/07/13 19:07:15
Oh, the FP! That makes sense. I removed this code.
| |
186 header->fUsesDistanceVectorField = 1; | |
187 } else { | |
188 header->fUsesDistanceVectorField = 0; | |
189 } | |
190 | |
185 header->fSnapVerticesToPixelCenters = pipeline.snapVerticesToPixelCenters(); | 191 header->fSnapVerticesToPixelCenters = pipeline.snapVerticesToPixelCenters(); |
186 header->fColorEffectCnt = pipeline.numColorFragmentProcessors(); | 192 header->fColorEffectCnt = pipeline.numColorFragmentProcessors(); |
187 header->fCoverageEffectCnt = pipeline.numCoverageFragmentProcessors(); | 193 header->fCoverageEffectCnt = pipeline.numCoverageFragmentProcessors(); |
188 glDesc->finalize(); | 194 glDesc->finalize(); |
189 return true; | 195 return true; |
190 } | 196 } |
OLD | NEW |