| 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 memset(header, 0, kHeaderSize); | 135 memset(header, 0, kHeaderSize); |
| 136 | 136 |
| 137 if (pipeline.readsFragPosition()) { | 137 if (pipeline.readsFragPosition()) { |
| 138 header->fFragPosKey = | 138 header->fFragPosKey = |
| 139 GrGLFragmentShaderBuilder::KeyForFragmentPosition(pipeline.getRe
nderTarget(), | 139 GrGLFragmentShaderBuilder::KeyForFragmentPosition(pipeline.getRe
nderTarget(), |
| 140 gpu->glCaps())
; | 140 gpu->glCaps())
; |
| 141 } else { | 141 } else { |
| 142 header->fFragPosKey = 0; | 142 header->fFragPosKey = 0; |
| 143 } | 143 } |
| 144 | 144 |
| 145 header->fColorEffectCnt = pipeline.numColorStages(); | 145 header->fColorEffectCnt = pipeline.numColorFragmentStages(); |
| 146 header->fCoverageEffectCnt = pipeline.numCoverageStages(); | 146 header->fCoverageEffectCnt = pipeline.numCoverageFragmentStages(); |
| 147 desc->finalize(); | 147 desc->finalize(); |
| 148 return true; | 148 return true; |
| 149 } | 149 } |
| OLD | NEW |