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 "GrGLSLVertexShaderBuilder.h" | 8 #include "GrGLSLVertexShaderBuilder.h" |
9 #include "glsl/GrGLSLProgramBuilder.h" | 9 #include "glsl/GrGLSLProgramBuilder.h" |
10 #include "glsl/GrGLSLUniformHandler.h" | 10 #include "glsl/GrGLSLUniformHandler.h" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 posVar.c_str(), fRtAdjustName, fRtAdjustName); | 46 posVar.c_str(), fRtAdjustName, fRtAdjustName); |
47 } | 47 } |
48 // We could have the GrGeometryProcessor do this, but its just easier to hav
e it performed | 48 // We could have the GrGeometryProcessor do this, but its just easier to hav
e it performed |
49 // here. If we ever need to set variable pointsize, then we can reinvestigat
e | 49 // here. If we ever need to set variable pointsize, then we can reinvestigat
e |
50 this->codeAppend("gl_PointSize = 1.0;"); | 50 this->codeAppend("gl_PointSize = 1.0;"); |
51 } | 51 } |
52 | 52 |
53 void GrGLSLVertexBuilder::onFinalize() { | 53 void GrGLSLVertexBuilder::onFinalize() { |
54 fProgramBuilder->varyingHandler()->getVertexDecls(&this->inputs(), &this->ou
tputs()); | 54 fProgramBuilder->varyingHandler()->getVertexDecls(&this->inputs(), &this->ou
tputs()); |
55 } | 55 } |
56 | |
OLD | NEW |