Index: src/gpu/gl/GrGLPrimitiveProcessor.h |
diff --git a/src/gpu/gl/GrGLPrimitiveProcessor.h b/src/gpu/gl/GrGLPrimitiveProcessor.h |
index 7345eae35b43cdd75d6a7aadd6a275c136d6a657..474b5f460c08747ca60235fdc4cf001d7fdf2b6e 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; |