aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/SkSLGLSLTest.cpp
diff options
context:
space:
mode:
authorGravatar Ethan Nicholas <ethannicholas@google.com>2017-02-07 17:28:31 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-02-09 14:48:18 +0000
commit6f223283661c1ddc4a5334d2464804c6b6ba3ffa (patch)
treeea9a73a68bc283bea25ed317c870668ab99f1823 /tests/SkSLGLSLTest.cpp
parent9eae62c039304b4c315d0ba343c7cb209221cf45 (diff)
skslc type constructor cleanups
BUG=skia: Change-Id: I87108b5e107419d99c996ef032eda512a68451ab Reviewed-on: https://skia-review.googlesource.com/8117 Commit-Queue: Greg Daniel <egdaniel@google.com> Commit-Queue: Ethan Nicholas <ethannicholas@google.com> Reviewed-by: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'tests/SkSLGLSLTest.cpp')
-rw-r--r--tests/SkSLGLSLTest.cpp20
1 files changed, 8 insertions, 12 deletions
diff --git a/tests/SkSLGLSLTest.cpp b/tests/SkSLGLSLTest.cpp
index a0cc7d559e..533c203036 100644
--- a/tests/SkSLGLSLTest.cpp
+++ b/tests/SkSLGLSLTest.cpp
@@ -373,24 +373,20 @@ DEF_TEST(SkSLVectorConstructors, r) {
"vec2 v1 = vec2(1);"
"vec2 v2 = vec2(1, 2);"
"vec2 v3 = vec2(vec2(1));"
- "vec2 v4 = vec2(vec3(1));"
- "vec3 v5 = vec3(vec2(1), 1.0);"
- "vec3 v6 = vec3(vec4(1, 2, 3, 4));"
- "ivec2 v7 = ivec2(1);"
- "ivec2 v8 = ivec2(vec2(1, 2));"
- "vec2 v9 = vec2(ivec2(1, 2));",
+ "vec3 v4 = vec3(vec2(1), 1.0);"
+ "ivec2 v5 = ivec2(1);"
+ "ivec2 v6 = ivec2(vec2(1, 2));"
+ "vec2 v7 = vec2(ivec2(1, 2));",
*SkSL::ShaderCapsFactory::Default(),
"#version 400\n"
"out vec4 sk_FragColor;\n"
"vec2 v1 = vec2(1.0);\n"
"vec2 v2 = vec2(1.0, 2.0);\n"
"vec2 v3 = vec2(1.0);\n"
- "vec2 v4 = vec2(vec3(1.0));\n"
- "vec3 v5 = vec3(vec2(1.0), 1.0);\n"
- "vec3 v6 = vec3(vec4(1.0, 2.0, 3.0, 4.0));\n"
- "ivec2 v7 = ivec2(1);\n"
- "ivec2 v8 = ivec2(vec2(1.0, 2.0));\n"
- "vec2 v9 = vec2(ivec2(1, 2));\n");
+ "vec3 v4 = vec3(vec2(1.0), 1.0);\n"
+ "ivec2 v5 = ivec2(1);\n"
+ "ivec2 v6 = ivec2(vec2(1.0, 2.0));\n"
+ "vec2 v7 = vec2(ivec2(1, 2));\n");
}
DEF_TEST(SkSLArrayConstructors, r) {