Chromium Code Reviews| 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 | |
| 8 #ifndef GrGLVaryingHandler_DEFINED | |
| 9 #define GrGLVaryingHandler_DEFINED | |
| 10 | |
| 11 #include "glsl/GrGLSLVarying.h" | |
| 12 #include "GrTypesPriv.h" | |
| 13 #include "gl/GrGLProgramDataManager.h" | |
| 14 | |
| 15 class GrGLVaryingHandler : public GrGLSLVaryingHandler { | |
|
joshualitt
2015/11/20 17:51:58
This is really specific to NVPR and not GL
| |
| 16 public: | |
| 17 GrGLVaryingHandler(GrGLSLProgramBuilder* program) | |
| 18 : INHERITED(program), | |
| 19 fSeparableVaryingInfos(kVaryingsPerBlock) {} | |
| 20 | |
| 21 SeparableVaryingHandle addSeparableVarying(const char* name, GrGLSLVertToFra g*, | |
| 22 GrSLPrecision fsPrecision = kDefault_GrSL Precision) override; | |
| 23 | |
| 24 private: | |
| 25 typedef GrGLProgramDataManager::SeparableVaryingInfo SeparableVaryingInfo; | |
| 26 typedef GrGLProgramDataManager::SeparableVaryingInfoArray SeparableVaryingIn foArray; | |
| 27 | |
| 28 SeparableVaryingInfoArray fSeparableVaryingInfos; | |
| 29 | |
| 30 friend class GrGLProgramBuilder; | |
| 31 | |
| 32 typedef GrGLSLVaryingHandler INHERITED; | |
| 33 }; | |
| 34 | |
| 35 #endif | |
| 36 | |
| OLD | NEW |