aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/glsl/GrGLSLXferProcessor.h
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2016-01-20 12:00:21 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-01-20 12:00:22 -0800
commit8bc3cf88bbf5e5d5724356f076931bb70a6117ba (patch)
tree3f834195521e209e88c7437e7d633efd279c1c36 /src/gpu/glsl/GrGLSLXferProcessor.h
parent550e9b0ef1c0fba42e2e902a467af322ad2413da (diff)
Add gpu implementation of OverdrawXfermode
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..37e684fcde 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