| Index: src/gpu/glsl/GrGLSLFragmentShaderBuilder.h
|
| diff --git a/src/gpu/glsl/GrGLSLFragmentShaderBuilder.h b/src/gpu/glsl/GrGLSLFragmentShaderBuilder.h
|
| index b9816af71a2a014ea8eb1388443078993c8fa4a5..dca89a84cde17fea3ea21ed7d1fe34bacbb86d82 100644
|
| --- a/src/gpu/glsl/GrGLSLFragmentShaderBuilder.h
|
| +++ b/src/gpu/glsl/GrGLSLFragmentShaderBuilder.h
|
| @@ -67,6 +67,16 @@ public:
|
| GrGLSLFPFragmentBuilder() : GrGLSLFragmentBuilder(nullptr) {}
|
|
|
| /**
|
| + * Appends the location of a specified sample. A sample location is understood to be its offset
|
| + * in device space from the center of the pixel.
|
| + *
|
| + * @param sampleIdx GLSL expression of the sample index.
|
| + *
|
| + * Requires a pipeline with sample locations enabled.
|
| + */
|
| + virtual void appendSampleLocation(const char* sampleIdx) = 0;
|
| +
|
| + /**
|
| * Subtracts sample coverage from the fragment. Any sample whose corresponding bit is not found
|
| * in the mask will not be written out to the framebuffer.
|
| *
|
| @@ -152,6 +162,7 @@ public:
|
| const char* fragmentPosition() override;
|
|
|
| // GrGLSLFPFragmentBuilder interface.
|
| + void appendSampleLocation(const char* sampleIdx) override;
|
| void maskSampleCoverage(const char* mask, bool invert = false) override;
|
| void overrideSampleCoverage(const char* mask) override;
|
| const SkString& getMangleString() const override { return fMangleString; }
|
|
|