Chromium Code Reviews| Index: src/gpu/gl/builders/GrGLFragmentShaderBuilder.h |
| diff --git a/src/gpu/gl/builders/GrGLFragmentShaderBuilder.h b/src/gpu/gl/builders/GrGLFragmentShaderBuilder.h |
| index 8746fffb8b101f75cb3d637045b2fa736bfd6bfd..3fb029989713adb7e000848413b0c0dd0f43a4df 100644 |
| --- a/src/gpu/gl/builders/GrGLFragmentShaderBuilder.h |
| +++ b/src/gpu/gl/builders/GrGLFragmentShaderBuilder.h |
| @@ -77,6 +77,27 @@ public: |
| return ret; |
| } |
| + // This class is like AutoStageAdvance but used for the child procs of a fragment proc. |
|
tomhudson
2015/08/14 15:58:48
This comment requires the reader to understand Aut
wangyix
2015/08/14 16:07:27
Acknowledged.
|
| + class AutoFragmentChildProcAdvance { |
| + typedef GrGLProcessor::TransformedCoordsArray TransformedCoordsArray; |
| + typedef GrGLProcessor::TextureSamplerArray TextureSamplerArray; |
| + public: |
| + AutoFragmentChildProcAdvance(int childProcIndex, |
| + GrGLFPBuilder* builder, |
| + const GrFragmentProcessor& fp, |
| + const char* outputColor, |
| + const TransformedCoordsArray& coords, |
| + const TextureSamplerArray& samplers, |
| + const GrFragmentProcessor** childFp, |
| + SkString* childOutputColor, |
| + TransformedCoordsArray* childCoords, |
| + TextureSamplerArray* childSamplers); |
| + |
| + ~AutoFragmentChildProcAdvance(); |
| + private: |
| + GrGLFragmentBuilder* fFsb; |
| + }; |
| + |
| private: |
| /* |
| * State that tracks which child proc in the proc tree is currently emitting code. This is |