| 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 GrGLShaderBuilder_DEFINED | 8 #ifndef GrGLShaderBuilder_DEFINED |
| 9 #define GrGLShaderBuilder_DEFINED | 9 #define GrGLShaderBuilder_DEFINED |
| 10 | 10 |
| 11 #include "SkTArray.h" | 11 #include "SkTArray.h" |
| 12 #include "gl/GrGLFragmentProcessor.h" | 12 #include "gl/GrGLFragmentProcessor.h" |
| 13 #include "gl/GrGLProgramDesc.h" | 13 #include "gl/GrGLProgramDesc.h" |
| 14 #include "gl/GrGLProgramDataManager.h" | 14 #include "gl/GrGLProgramDataManager.h" |
| 15 #include "gl/GrGLTypes.h" |
| 15 | 16 |
| 16 #include <stdarg.h> | 17 #include <stdarg.h> |
| 17 | 18 |
| 19 class GrGLCaps; |
| 18 class GrGLContextInfo; | 20 class GrGLContextInfo; |
| 19 class GrGLProgramBuilder; | 21 class GrGLProgramBuilder; |
| 20 | 22 |
| 21 /** | 23 /** |
| 22 base class for all shaders builders | 24 base class for all shaders builders |
| 23 */ | 25 */ |
| 24 class GrGLShaderBuilder { | 26 class GrGLShaderBuilder { |
| 25 public: | 27 public: |
| 26 typedef GrGLProcessor::TransformedCoordsArray TransformedCoordsArray; | 28 typedef GrGLProcessor::TransformedCoordsArray TransformedCoordsArray; |
| 27 typedef GrGLProcessor::TextureSampler TextureSampler; | 29 typedef GrGLProcessor::TextureSampler TextureSampler; |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 VarArray fOutputs; | 201 VarArray fOutputs; |
| 200 uint32_t fFeaturesAddedMask; | 202 uint32_t fFeaturesAddedMask; |
| 201 SkSTArray<1, SkString> fLayoutParams[kLastInterfaceQualifier + 1]; | 203 SkSTArray<1, SkString> fLayoutParams[kLastInterfaceQualifier + 1]; |
| 202 int fCodeIndex; | 204 int fCodeIndex; |
| 203 bool fFinalized; | 205 bool fFinalized; |
| 204 | 206 |
| 205 friend class GrGLProgramBuilder; | 207 friend class GrGLProgramBuilder; |
| 206 friend class GrGLPathProgramBuilder; // to access fInputs. | 208 friend class GrGLPathProgramBuilder; // to access fInputs. |
| 207 }; | 209 }; |
| 208 #endif | 210 #endif |
| OLD | NEW |