| 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 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 friend GrGLSLExpr4 operator+(const GrGLSLExpr4& in0, const GrGLSLExpr4&in1); | 303 friend GrGLSLExpr4 operator+(const GrGLSLExpr4& in0, const GrGLSLExpr4&in1); |
| 304 friend GrGLSLExpr4 operator-(const GrGLSLExpr4& in0, const GrGLSLExpr4&in1); | 304 friend GrGLSLExpr4 operator-(const GrGLSLExpr4& in0, const GrGLSLExpr4&in1); |
| 305 | 305 |
| 306 friend class GrGLSLExpr<GrGLSLExpr4>; | 306 friend class GrGLSLExpr<GrGLSLExpr4>; |
| 307 | 307 |
| 308 typedef GrGLSLExpr<GrGLSLExpr4> INHERITED; | 308 typedef GrGLSLExpr<GrGLSLExpr4> INHERITED; |
| 309 }; | 309 }; |
| 310 | 310 |
| 311 /** | 311 /** |
| 312 * Does an inplace mul, *=, of vec4VarName by mulFactor. | 312 * Does an inplace mul, *=, of vec4VarName by mulFactor. |
| 313 * A semicolon and newline are added after the assignment. | 313 * A semicolon is added after the assignment. |
| 314 */ | 314 */ |
| 315 void GrGLSLMulVarBy4f(SkString* outAppend, unsigned tabCnt, | 315 void GrGLSLMulVarBy4f(SkString* outAppend, const char* vec4VarName, const GrGLSL
Expr4& mulFactor); |
| 316 const char* vec4VarName, const GrGLSLExpr4& mulFactor); | |
| 317 | 316 |
| 318 #include "GrGLSL_impl.h" | 317 #include "GrGLSL_impl.h" |
| 319 | 318 |
| 320 #endif | 319 #endif |
| OLD | NEW |