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 GrGLShaderVar_DEFINED | 8 #ifndef GrGLShaderVar_DEFINED |
9 #define GrGLShaderVar_DEFINED | 9 #define GrGLShaderVar_DEFINED |
10 | 10 |
11 #include "GrGLContext.h" | 11 #include "GrGLContext.h" |
12 #include "GrGLSL.h" | |
13 #include "GrShaderVar.h" | 12 #include "GrShaderVar.h" |
14 | 13 |
15 #define USE_UNIFORM_FLOAT_ARRAYS true | 14 #define USE_UNIFORM_FLOAT_ARRAYS true |
16 | 15 |
17 /** | 16 /** |
18 * Represents a variable in a shader | 17 * Represents a variable in a shader |
19 */ | 18 */ |
20 class GrGLShaderVar : public GrShaderVar { | 19 class GrGLShaderVar : public GrShaderVar { |
21 public: | 20 public: |
22 /** | 21 /** |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 | 245 |
247 Origin fOrigin; | 246 Origin fOrigin; |
248 /// Work around driver bugs on some hardware that don't correctly | 247 /// Work around driver bugs on some hardware that don't correctly |
249 /// support uniform float [] | 248 /// support uniform float [] |
250 bool fUseUniformFloatArrays; | 249 bool fUseUniformFloatArrays; |
251 | 250 |
252 typedef GrShaderVar INHERITED; | 251 typedef GrShaderVar INHERITED; |
253 }; | 252 }; |
254 | 253 |
255 #endif | 254 #endif |
OLD | NEW |