Chromium Code Reviews| Index: src/gpu/gl/GrGLGeometryProcessor.h |
| diff --git a/src/gpu/gl/GrGLGeometryProcessor.h b/src/gpu/gl/GrGLGeometryProcessor.h |
| index 747d82ab4859f0b76f244562d4ae1a39671eb5d4..f78c1d62c1c39f7e0d5425d4248f717f10f18abe 100644 |
| --- a/src/gpu/gl/GrGLGeometryProcessor.h |
| +++ b/src/gpu/gl/GrGLGeometryProcessor.h |
| @@ -50,6 +50,7 @@ protected: |
| this->emitTransforms(gp, posVar, localCoords, SkMatrix::I(), tin, tout); |
| } |
| + // emit transforms via uniform |
|
bsalomon
2015/08/05 15:17:02
// Emit a uniform matrix for each coord transform.
|
| void emitTransforms(GrGLGPBuilder*, |
| const GrShaderVar& posVar, |
| const char* localCoords, |
| @@ -57,6 +58,12 @@ protected: |
| const TransformsIn&, |
| TransformsOut*); |
| + // caller has emitted transforms via attributes |
|
bsalomon
2015/08/05 15:17:02
// Emit pre-transformed coords as a vertex attribu
|
| + void emitTransforms(GrGLGPBuilder*, |
| + const char* localCoords, |
| + const TransformsIn& tin, |
| + TransformsOut* tout); |
| + |
| struct GrGPArgs { |
| // The variable used by a GP to store its position. It can be |
| // either a vec2 or a vec3 depending on the presence of perspective. |