From 2279325d539700ee3da29d6e874b3b3ce1dcf49c Mon Sep 17 00:00:00 2001 From: ethannicholas Date: Sat, 30 Jan 2016 09:59:10 -0800 Subject: added support for PLS path rendering BUG=skia:3555 GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1541903002 Committed: https://skia.googlesource.com/skia/+/7df3f5e127f8016d17b637cc48a6a4718f1a6822 Review URL: https://codereview.chromium.org/1541903002 --- src/gpu/glsl/GrGLSLPLSPathRendering.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/gpu/glsl/GrGLSLPLSPathRendering.h (limited to 'src/gpu/glsl/GrGLSLPLSPathRendering.h') 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" + -- cgit v1.2.3