diff options
author | ethannicholas <ethannicholas@google.com> | 2016-01-22 06:48:46 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-01-22 06:48:46 -0800 |
commit | 7df3f5e127f8016d17b637cc48a6a4718f1a6822 (patch) | |
tree | 224a919d0ed775835fb6dd40ddb2399214de081e /src/gpu/glsl/GrGLSLPLSPathRendering.h | |
parent | 7481e75830dfae1e9084ff62e3d8438879e31aaa (diff) |
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
Review URL: https://codereview.chromium.org/1541903002
Diffstat (limited to 'src/gpu/glsl/GrGLSLPLSPathRendering.h')
-rw-r--r-- | src/gpu/glsl/GrGLSLPLSPathRendering.h | 13 |
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" + |