OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 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 "GrGLNvprProgramBuilder.h" | 8 #include "GrGLNvprProgramBuilder.h" |
9 #include "../GrGpuGL.h" | 9 #include "../GrGpuGL.h" |
10 | 10 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 fSeparableVaryingInfos[i].fVariab
le.c_str())); | 65 fSeparableVaryingInfos[i].fVariab
le.c_str())); |
66 fSeparableVaryingInfos[i].fLocation = location; | 66 fSeparableVaryingInfos[i].fLocation = location; |
67 } | 67 } |
68 } | 68 } |
69 | 69 |
70 GrGLProgram* GrGLNvprProgramBuilder::createProgram(GrGLuint programID) { | 70 GrGLProgram* GrGLNvprProgramBuilder::createProgram(GrGLuint programID) { |
71 // this is just for nvpr es, which has separable varyings that are plugged i
n after | 71 // this is just for nvpr es, which has separable varyings that are plugged i
n after |
72 // building | 72 // building |
73 this->resolveSeparableVaryings(programID); | 73 this->resolveSeparableVaryings(programID); |
74 return SkNEW_ARGS(GrGLNvprProgram, (fGpu, fDesc, fUniformHandles, programID,
fUniforms, | 74 return SkNEW_ARGS(GrGLNvprProgram, (fGpu, fDesc, fUniformHandles, programID,
fUniforms, |
75 fFragmentProcessors.get(), fSeparableVar
yingInfos)); | 75 fXferProcessor, fFragmentProcessors.get(
), |
| 76 fSeparableVaryingInfos)); |
76 } | 77 } |
OLD | NEW |