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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 | 156 |
157 if (pipeline.ignoresCoverage()) { | 157 if (pipeline.ignoresCoverage()) { |
158 header->fIgnoresCoverage = 1; | 158 header->fIgnoresCoverage = 1; |
159 } else { | 159 } else { |
160 header->fIgnoresCoverage = 0; | 160 header->fIgnoresCoverage = 0; |
161 } | 161 } |
162 | 162 |
163 header->fSnapVerticesToPixelCenters = pipeline.snapVerticesToPixelCenters(); | 163 header->fSnapVerticesToPixelCenters = pipeline.snapVerticesToPixelCenters(); |
164 header->fColorEffectCnt = pipeline.numColorFragmentProcessors(); | 164 header->fColorEffectCnt = pipeline.numColorFragmentProcessors(); |
165 header->fCoverageEffectCnt = pipeline.numCoverageFragmentProcessors(); | 165 header->fCoverageEffectCnt = pipeline.numCoverageFragmentProcessors(); |
| 166 |
| 167 if (pipeline.hasSampleLocations()) { |
| 168 header->fSamplePatternKey = pipeline.getSamplePatternID(); |
| 169 } else { |
| 170 header->fSamplePatternKey = 0; |
| 171 } |
| 172 |
166 glDesc->finalize(); | 173 glDesc->finalize(); |
167 return true; | 174 return true; |
168 } | 175 } |
OLD | NEW |