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 "GrGLProcessor.h" | 9 #include "GrGLProcessor.h" |
10 #include "GrProcessor.h" | 10 #include "GrProcessor.h" |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 // make sure any padding in the header is zeroed. | 136 // make sure any padding in the header is zeroed. |
137 memset(header, 0, kHeaderSize); | 137 memset(header, 0, kHeaderSize); |
138 | 138 |
139 if (pipeline.readsFragPosition()) { | 139 if (pipeline.readsFragPosition()) { |
140 header->fFragPosKey = | 140 header->fFragPosKey = |
141 GrGLFragmentShaderBuilder::KeyForFragmentPosition(pipeline.getRe
nderTarget(), | 141 GrGLFragmentShaderBuilder::KeyForFragmentPosition(pipeline.getRe
nderTarget(), |
142 gpu->glCaps())
; | 142 gpu->glCaps())
; |
143 } else { | 143 } else { |
144 header->fFragPosKey = 0; | 144 header->fFragPosKey = 0; |
145 } | 145 } |
146 | 146 header->fSnapVerticesToPixelCenters = pipeline.snapVerticesToPixelCenters(); |
147 header->fColorEffectCnt = pipeline.numColorFragmentStages(); | 147 header->fColorEffectCnt = pipeline.numColorFragmentStages(); |
148 header->fCoverageEffectCnt = pipeline.numCoverageFragmentStages(); | 148 header->fCoverageEffectCnt = pipeline.numCoverageFragmentStages(); |
149 glDesc->finalize(); | 149 glDesc->finalize(); |
150 return true; | 150 return true; |
151 } | 151 } |
OLD | NEW |