OLD | NEW |
(Empty) | |
| 1 /* |
| 2 * Copyright 2015 Google Inc. |
| 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. |
| 6 */ |
| 7 #ifndef GrGLPathProgramBuilder_DEFINED |
| 8 #define GrGLPathProgramBuilder_DEFINED |
| 9 |
| 10 #include "GrGLProgramBuilder.h" |
| 11 |
| 12 class GrGLPathProgramBuilder : public GrGLProgramBuilder { |
| 13 public: |
| 14 GrGLPathProgramBuilder(GrGLGpu* gpu, const DrawArgs& args); |
| 15 |
| 16 GrGLProgram* createProgram(GrGLuint programID) override; |
| 17 |
| 18 SeparableVaryingHandle addSeparableVarying(const char* name, GrGLVertToFrag*
v, |
| 19 GrSLPrecision fsPrecision) overri
de; |
| 20 void resolveProgramResourceLocations(GrGLuint programID) override; |
| 21 |
| 22 private: |
| 23 typedef GrGLPathProgramDataManager::SeparableVaryingInfo SeparableVaryingInf
o; |
| 24 typedef GrGLPathProgramDataManager::SeparableVaryingInfoArray SeparableVaryi
ngInfoArray; |
| 25 |
| 26 SeparableVaryingInfoArray fSeparableVaryingInfos; |
| 27 |
| 28 typedef GrGLProgramBuilder INHERITED; |
| 29 }; |
| 30 |
| 31 #endif |
OLD | NEW |