Chromium Code Reviews| Index: src/gpu/gl/GrGLPrimitiveProcessor.h |
| diff --git a/src/gpu/gl/GrGLPrimitiveProcessor.h b/src/gpu/gl/GrGLPrimitiveProcessor.h |
| index 7345eae35b43cdd75d6a7aadd6a275c136d6a657..a6aef5f56d30145c47c9e56d2fdc63679a249bd4 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 GrGLPathProgramDataManager::SeparableVaryingHandle::CreateFromSeparableVaryingIndex(fHandle); |
|
joshualitt
2015/06/23 14:07:24
please linewrap using typedefs
Kimmo Kinnunen
2015/06/25 12:38:11
Done.
|
| + } |
| private: |
| int fHandle; |