| 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 #ifndef GrGLSLShaderBuilder_DEFINED | 8 #ifndef GrGLSLShaderBuilder_DEFINED | 
| 9 #define GrGLSLShaderBuilder_DEFINED | 9 #define GrGLSLShaderBuilder_DEFINED | 
| 10 | 10 | 
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 86        va_start(args, format); | 86        va_start(args, format); | 
| 87        this->code().prependVAList(format, args); | 87        this->code().prependVAList(format, args); | 
| 88        va_end(args); | 88        va_end(args); | 
| 89     } | 89     } | 
| 90 | 90 | 
| 91     /** | 91     /** | 
| 92      * Appends a variable declaration to one of the shaders | 92      * Appends a variable declaration to one of the shaders | 
| 93      */ | 93      */ | 
| 94     void declAppend(const GrGLSLShaderVar& var); | 94     void declAppend(const GrGLSLShaderVar& var); | 
| 95 | 95 | 
|  | 96     /** | 
|  | 97      * Appends a precision qualifier followed by a space, if relevant for the GL
     SL version. | 
|  | 98      */ | 
|  | 99     void appendPrecisionModifier(GrSLPrecision); | 
|  | 100 | 
| 96     /** Emits a helper function outside of main() in the fragment shader. */ | 101     /** Emits a helper function outside of main() in the fragment shader. */ | 
| 97     void emitFunction(GrSLType returnType, | 102     void emitFunction(GrSLType returnType, | 
| 98                       const char* name, | 103                       const char* name, | 
| 99                       int argCnt, | 104                       int argCnt, | 
| 100                       const GrGLSLShaderVar* args, | 105                       const GrGLSLShaderVar* args, | 
| 101                       const char* body, | 106                       const char* body, | 
| 102                       SkString* outName); | 107                       SkString* outName); | 
| 103 | 108 | 
| 104     /* | 109     /* | 
| 105      * Combines the various parts of the shader to create a single finalized sha
     der string. | 110      * Combines the various parts of the shader to create a single finalized sha
     der string. | 
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 220     int fCodeIndex; | 225     int fCodeIndex; | 
| 221     bool fFinalized; | 226     bool fFinalized; | 
| 222 | 227 | 
| 223     friend class GrGLSLProgramBuilder; | 228     friend class GrGLSLProgramBuilder; | 
| 224     friend class GrGLProgramBuilder; | 229     friend class GrGLProgramBuilder; | 
| 225     friend class GrGLSLVaryingHandler; // to access noperspective interpolation 
     feature. | 230     friend class GrGLSLVaryingHandler; // to access noperspective interpolation 
     feature. | 
| 226     friend class GrGLPathProgramBuilder; // to access fInputs. | 231     friend class GrGLPathProgramBuilder; // to access fInputs. | 
| 227     friend class GrVkPipelineStateBuilder; | 232     friend class GrVkPipelineStateBuilder; | 
| 228 }; | 233 }; | 
| 229 #endif | 234 #endif | 
| OLD | NEW | 
|---|