| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 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 GrGLProgramDesc_DEFINED | 8 #ifndef GrGLProgramDesc_DEFINED |
| 9 #define GrGLProgramDesc_DEFINED | 9 #define GrGLProgramDesc_DEFINED |
| 10 | 10 |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 kPreAllocSize = kEffectKeyOffsetsAndLengthOffset + | 245 kPreAllocSize = kEffectKeyOffsetsAndLengthOffset + |
| 246 kMaxPreallocEffects * sizeof(uint32_t) * kIntsPerEffect, | 246 kMaxPreallocEffects * sizeof(uint32_t) * kIntsPerEffect, |
| 247 }; | 247 }; |
| 248 | 248 |
| 249 SkSTArray<kPreAllocSize, uint8_t, true> fKey; | 249 SkSTArray<kPreAllocSize, uint8_t, true> fKey; |
| 250 | 250 |
| 251 // GrGLProgram and GrGLShaderBuilder read the private fields to generate cod
e. TODO: Split out | 251 // GrGLProgram and GrGLShaderBuilder read the private fields to generate cod
e. TODO: Split out |
| 252 // part of GrGLShaderBuilder that is used by effects so that this header doe
sn't need to be | 252 // part of GrGLShaderBuilder that is used by effects so that this header doe
sn't need to be |
| 253 // visible to GrGLEffects. Then make public accessors as necessary and remov
e friends. | 253 // visible to GrGLEffects. Then make public accessors as necessary and remov
e friends. |
| 254 friend class GrGLProgram; | 254 friend class GrGLProgram; |
| 255 friend class GrGLShaderBuilder; | 255 friend class GrGLProgramBuilder; |
| 256 friend class GrGLFullShaderBuilder; | 256 friend class GrGLFullProgramBuilder; |
| 257 friend class GrGLFragmentOnlyShaderBuilder; | 257 friend class GrGLFragmentOnlyProgramBuilder; |
| 258 friend class GrGLVertexShaderBuilder; |
| 259 friend class GrGLFragmentShaderBuilder; |
| 260 friend class GrGLGeometryShaderBuilder; |
| 258 }; | 261 }; |
| 259 | 262 |
| 260 #endif | 263 #endif |
| OLD | NEW |