| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 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 GrGLSL_DEFINED | 8 #ifndef GrGLSL_DEFINED |
| 9 #define GrGLSL_DEFINED | 9 #define GrGLSL_DEFINED |
| 10 | 10 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 * ES GLSL 3.10 only TODO Make GLSLCap objects to make this more granular | 43 * ES GLSL 3.10 only TODO Make GLSLCap objects to make this more granular |
| 44 */ | 44 */ |
| 45 k310es_GrGLSLGeneration, | 45 k310es_GrGLSLGeneration, |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 /** | 48 /** |
| 49 * Gets the most recent GLSL Generation compatible with the OpenGL context. | 49 * Gets the most recent GLSL Generation compatible with the OpenGL context. |
| 50 */ | 50 */ |
| 51 bool GrGetGLSLGeneration(const GrGLInterface* gl, GrGLSLGeneration* generation); | 51 bool GrGetGLSLGeneration(const GrGLInterface* gl, GrGLSLGeneration* generation); |
| 52 | 52 |
| 53 bool GrGLSLSupportsNamedFragmentShaderOutputs(GrGLSLGeneration); |
| 54 |
| 53 /** | 55 /** |
| 54 * Returns a string to include at the beginning of a shader to declare the GLSL | 56 * Returns a string to include at the beginning of a shader to declare the GLSL |
| 55 * version. | 57 * version. |
| 56 */ | 58 */ |
| 57 const char* GrGetGLSLVersionDecl(const GrGLContextInfo&); | 59 const char* GrGetGLSLVersionDecl(const GrGLContextInfo&); |
| 58 | 60 |
| 59 /** | 61 /** |
| 60 * Adds a line of GLSL code to declare the default precision for float types. | 62 * Adds a line of GLSL code to declare the default precision for float types. |
| 61 */ | 63 */ |
| 62 void GrGLSLAppendDefaultFloatPrecisionDeclaration(GrSLPrecision, GrGLStandard, S
kString* out); | 64 void GrGLSLAppendDefaultFloatPrecisionDeclaration(GrSLPrecision, GrGLStandard, S
kString* out); |
| (...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 | 338 |
| 337 /** | 339 /** |
| 338 * Does an inplace mul, *=, of vec4VarName by mulFactor. | 340 * Does an inplace mul, *=, of vec4VarName by mulFactor. |
| 339 * A semicolon is added after the assignment. | 341 * A semicolon is added after the assignment. |
| 340 */ | 342 */ |
| 341 void GrGLSLMulVarBy4f(SkString* outAppend, const char* vec4VarName, const GrGLSL
Expr4& mulFactor); | 343 void GrGLSLMulVarBy4f(SkString* outAppend, const char* vec4VarName, const GrGLSL
Expr4& mulFactor); |
| 342 | 344 |
| 343 #include "GrGLSL_impl.h" | 345 #include "GrGLSL_impl.h" |
| 344 | 346 |
| 345 #endif | 347 #endif |
| OLD | NEW |