diff options
author | Ethan Nicholas <ethannicholas@google.com> | 2017-07-07 10:13:31 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-07-07 20:42:34 +0000 |
commit | 9b80ffc77b8000b493eb1226dc6ec21f1e99edfc (patch) | |
tree | b369cebec300f4017d306eff093e059eaea3298f /tests/SkSLFPTest.cpp | |
parent | 66828c02456d6fe30cd4495955dc37f46cc2adf1 (diff) |
converted GrCircleBlurFragmentProcessor to sksl
Bug: skia:
Change-Id: I1b70ba2003c9e9de2b5b9acadaf25c9ed59b1198
Reviewed-on: https://skia-review.googlesource.com/21727
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'tests/SkSLFPTest.cpp')
-rw-r--r-- | tests/SkSLFPTest.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/SkSLFPTest.cpp b/tests/SkSLFPTest.cpp index 64b4e71d8e..38f12e1659 100644 --- a/tests/SkSLFPTest.cpp +++ b/tests/SkSLFPTest.cpp @@ -78,6 +78,8 @@ DEF_TEST(SkSLFPHelloWorld, r) { " */\n" "#ifndef GrTest_DEFINED\n" "#define GrTest_DEFINED\n" + "#include \"SkTypes.h\"\n" + "#if SK_SUPPORT_GPU\n" "#include \"GrFragmentProcessor.h\"\n" "#include \"GrCoordTransform.h\"\n" "#include \"effects/GrProxyMove.h\"\n" @@ -100,6 +102,7 @@ DEF_TEST(SkSLFPHelloWorld, r) { " typedef GrFragmentProcessor INHERITED;\n" "};\n" "#endif\n" + "#endif\n" }, { "/*\n" @@ -113,6 +116,7 @@ DEF_TEST(SkSLFPHelloWorld, r) { " * This file was autogenerated from GrTest.fp; do not modify.\n" " */\n" "#include \"GrTest.h\"\n" + "#if SK_SUPPORT_GPU\n" "#include \"glsl/GrGLSLColorSpaceXformHelper.h\"\n" "#include \"glsl/GrGLSLFragmentProcessor.h\"\n" "#include \"glsl/GrGLSLFragmentShaderBuilder.h\"\n" @@ -144,6 +148,7 @@ DEF_TEST(SkSLFPHelloWorld, r) { " (void) that;\n" " return true;\n" "}\n" + "#endif\n" }); } @@ -211,7 +216,7 @@ DEF_TEST(SkSLFPSections, r) { "}", *SkSL::ShaderCapsFactory::Default(), { - "#define GrTest_DEFINED\n header section" + "#if SK_SUPPORT_GPU\n header section" }, {}); test(r, |