aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/glsl/GrGLSLPLSPathRendering.h
diff options
context:
space:
mode:
authorGravatar ethannicholas <ethannicholas@google.com>2016-01-30 09:59:10 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-01-30 09:59:10 -0800
commit2279325d539700ee3da29d6e874b3b3ce1dcf49c (patch)
treefa68207d94b4919c1759578a5d5192786d83c6d6 /src/gpu/glsl/GrGLSLPLSPathRendering.h
parentad38ed6003ad89a21e40d76987db4bba7d42f3d0 (diff)
added support for PLS path rendering
Diffstat (limited to 'src/gpu/glsl/GrGLSLPLSPathRendering.h')
-rw-r--r--src/gpu/glsl/GrGLSLPLSPathRendering.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gpu/glsl/GrGLSLPLSPathRendering.h b/src/gpu/glsl/GrGLSLPLSPathRendering.h
new file mode 100644
index 0000000000..9a1625d43e
--- /dev/null
+++ b/src/gpu/glsl/GrGLSLPLSPathRendering.h
@@ -0,0 +1,13 @@
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#define GR_GL_PLS_DSTCOLOR_NAME "pls.dstColor"
+#define GR_GL_PLS_PATH_DATA_DECL "__pixel_localEXT PLSData {\n"\
+ " layout(rgba8i) ivec4 windings;\n"\
+ " layout(rgba8) vec4 dstColor;\n"\
+ "} pls;\n"
+