| Index: src/gpu/glsl/GrGLSLFragmentShaderBuilder.h
|
| diff --git a/src/gpu/glsl/GrGLSLFragmentShaderBuilder.h b/src/gpu/glsl/GrGLSLFragmentShaderBuilder.h
|
| index 55ef9db207ff4af643ba8a7414d12d5acf72ba95..ecb6d455ddefcb8be3ebc9a4534ecda2d64ce347 100644
|
| --- a/src/gpu/glsl/GrGLSLFragmentShaderBuilder.h
|
| +++ b/src/gpu/glsl/GrGLSLFragmentShaderBuilder.h
|
| @@ -11,7 +11,6 @@
|
| #include "GrGLSLShaderBuilder.h"
|
|
|
| #include "GrProcessor.h"
|
| -#include "glsl/GrGLSLProcessorTypes.h"
|
|
|
| class GrRenderTarget;
|
| class GrGLSLVarying;
|
| @@ -43,10 +42,11 @@ public:
|
|
|
| /**
|
| * This returns a variable name to access the 2D, perspective correct version of the coords in
|
| - * the fragment shader. If the coordinates at index are 3-dimensional, it immediately emits a
|
| - * perspective divide into the fragment shader (xy / z) to convert them to 2D.
|
| + * the fragment shader. The passed in coordinates must either be of type kVec2f or kVec3f. If
|
| + * the coordinates are 3-dimensional, it a perspective divide into is emitted into the
|
| + * fragment shader (xy / z) to convert them to 2D.
|
| */
|
| - virtual SkString ensureFSCoords2D(const GrGLSLTransformedCoordsArray& coords, int index) = 0;
|
| + virtual SkString ensureCoords2D(const GrShaderVar&) = 0;
|
|
|
|
|
| /** Returns a variable name that represents the position of the fragment in the FS. The position
|
| @@ -167,8 +167,7 @@ public:
|
|
|
| // Shared GrGLSLFragmentBuilder interface.
|
| bool enableFeature(GLSLFeature) override;
|
| - virtual SkString ensureFSCoords2D(const GrGLSLTransformedCoordsArray& coords,
|
| - int index) override;
|
| + virtual SkString ensureCoords2D(const GrShaderVar&) override;
|
| const char* fragmentPosition() override;
|
| const char* distanceVectorName() const override;
|
|
|
|
|