aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/glsl/GrGLSLXferProcessor.h
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2016-01-26 12:07:13 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-01-26 12:07:13 -0800
commit727b7d27afd01ab76771ba0b3279208cff728d1a (patch)
tree0c23eb272db4ad25c8a16f14ed4b70173ac882fd /src/gpu/glsl/GrGLSLXferProcessor.h
parented0bf1b43e192c9bcade24702e5d673d1974bf55 (diff)
Add gpu backend for SkPixelXorXfermode
Diffstat (limited to 'src/gpu/glsl/GrGLSLXferProcessor.h')
-rw-r--r--src/gpu/glsl/GrGLSLXferProcessor.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gpu/glsl/GrGLSLXferProcessor.h b/src/gpu/glsl/GrGLSLXferProcessor.h
index ed8099b6f3..6886740584 100644
--- a/src/gpu/glsl/GrGLSLXferProcessor.h
+++ b/src/gpu/glsl/GrGLSLXferProcessor.h
@@ -68,6 +68,14 @@ public:
*/
void setData(const GrGLSLProgramDataManager& pdm, const GrXferProcessor& xp);
+protected:
+ static void DefaultCoverageModulation(GrGLSLXPFragmentBuilder* fragBuilder,
+ const char* srcCoverage,
+ const char* dstColor,
+ const char* outColor,
+ const char* outColorSecondary,
+ const GrXferProcessor& proc);
+
private:
/**
* Called by emitCode() when the XP will not be performing a dst read. This method is