Chromium Code Reviews| Index: src/gpu/gl/GrGLVaryingHandler.h |
| diff --git a/src/gpu/gl/GrGLVaryingHandler.h b/src/gpu/gl/GrGLVaryingHandler.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..da9bca36198790fddbeae9995788bce1c8f26235 |
| --- /dev/null |
| +++ b/src/gpu/gl/GrGLVaryingHandler.h |
| @@ -0,0 +1,36 @@ |
| +/* |
| + * Copyright 2015 Google Inc. |
| + * |
| + * Use of this source code is governed by a BSD-style license that can be |
| + * found in the LICENSE file. |
| + */ |
| + |
| +#ifndef GrGLVaryingHandler_DEFINED |
| +#define GrGLVaryingHandler_DEFINED |
| + |
| +#include "glsl/GrGLSLVarying.h" |
| +#include "GrTypesPriv.h" |
| +#include "gl/GrGLProgramDataManager.h" |
| + |
| +class GrGLVaryingHandler : public GrGLSLVaryingHandler { |
|
joshualitt
2015/11/20 17:51:58
This is really specific to NVPR and not GL
|
| +public: |
| + GrGLVaryingHandler(GrGLSLProgramBuilder* program) |
| + : INHERITED(program), |
| + fSeparableVaryingInfos(kVaryingsPerBlock) {} |
| + |
| + SeparableVaryingHandle addSeparableVarying(const char* name, GrGLSLVertToFrag*, |
| + GrSLPrecision fsPrecision = kDefault_GrSLPrecision) override; |
| + |
| +private: |
| + typedef GrGLProgramDataManager::SeparableVaryingInfo SeparableVaryingInfo; |
| + typedef GrGLProgramDataManager::SeparableVaryingInfoArray SeparableVaryingInfoArray; |
| + |
| + SeparableVaryingInfoArray fSeparableVaryingInfos; |
| + |
| + friend class GrGLProgramBuilder; |
| + |
| + typedef GrGLSLVaryingHandler INHERITED; |
| +}; |
| + |
| +#endif |
| + |