diff options
Diffstat (limited to 'src/gpu/gl/GrGLPrimitiveProcessor.h')
-rw-r--r-- | src/gpu/gl/GrGLPrimitiveProcessor.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gpu/gl/GrGLPrimitiveProcessor.h b/src/gpu/gl/GrGLPrimitiveProcessor.h index 7345eae35b..474b5f460c 100644 --- a/src/gpu/gl/GrGLPrimitiveProcessor.h +++ b/src/gpu/gl/GrGLPrimitiveProcessor.h @@ -10,6 +10,7 @@ #include "GrPrimitiveProcessor.h" #include "GrGLProcessor.h" +#include "GrGLPathProgramDataManager.h" class GrBatchTracker; class GrPrimitiveProcessor; @@ -20,6 +21,7 @@ public: virtual ~GrGLPrimitiveProcessor() {} typedef GrGLProgramDataManager::UniformHandle UniformHandle; + typedef GrGLPathProgramDataManager::SeparableVaryingHandle SeparableVaryingHandle; typedef GrGLProcessor::TextureSamplerArray TextureSamplerArray; typedef SkSTArray<2, const GrCoordTransform*, true> ProcCoords; @@ -85,6 +87,10 @@ protected: SkASSERT(this->isValid()); return GrGLProgramDataManager::UniformHandle::CreateFromUniformIndex(fHandle); } + SeparableVaryingHandle convertToSeparableVaryingHandle() { + SkASSERT(this->isValid()); + return SeparableVaryingHandle::CreateFromSeparableVaryingIndex(fHandle); + } private: int fHandle; |