OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 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 "glsl/GrGLSLVarying.h" | 8 #include "glsl/GrGLSLVarying.h" |
9 | 9 |
10 #include "glsl/GrGLSLProgramBuilder.h" | 10 #include "glsl/GrGLSLProgramBuilder.h" |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 this->appendDecls(fGeomOutputs, outputDecls); | 150 this->appendDecls(fGeomOutputs, outputDecls); |
151 } | 151 } |
152 | 152 |
153 void GrGLSLVaryingHandler::getFragDecls(SkString* inputDecls, SkString* outputDe
cls) const { | 153 void GrGLSLVaryingHandler::getFragDecls(SkString* inputDecls, SkString* outputDe
cls) const { |
154 // We should not have any outputs in the fragment shader when using version
1.10 | 154 // We should not have any outputs in the fragment shader when using version
1.10 |
155 SkASSERT(k110_GrGLSLGeneration != fProgramBuilder->glslCaps()->generation()
|| | 155 SkASSERT(k110_GrGLSLGeneration != fProgramBuilder->glslCaps()->generation()
|| |
156 fFragOutputs.empty()); | 156 fFragOutputs.empty()); |
157 this->appendDecls(fFragInputs, inputDecls); | 157 this->appendDecls(fFragInputs, inputDecls); |
158 this->appendDecls(fFragOutputs, outputDecls); | 158 this->appendDecls(fFragOutputs, outputDecls); |
159 } | 159 } |
160 | |
OLD | NEW |