Migrate SkSL test inputs to the resources/ directory.

This will allow us to load these inputs for unit testing in `dm`.

Change-Id: Id256ba7c30d3ec94b98048e47af44cf9efe580d5
Bug: skia:11009
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/357282
Commit-Queue: John Stiles <johnstiles@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
diff --git a/BUILD.gn b/BUILD.gn
index 18a2c1b..37a5f78 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -716,13 +716,19 @@
         invoker.settings,
       ]
 
-      foreach(src, invoker.sources) {
-        dir = get_path_info(src, "dir")
-        name = get_path_info(src, "name")
-        ext = get_path_info(src, "extension")
+      testsDir = get_path_info("tests", "abspath")
+      resourcesDir = get_path_info("resources", "abspath")
+
+      foreach(partialPath, invoker.sources) {
+        dst = testsDir + partialPath
+        src = resourcesDir + partialPath
+
+        dir = get_path_info(dst, "dir")
+        name = get_path_info(dst, "name")
+        ext = get_path_info(dst, "extension")
         args += rebase_path([
                               src,
-                              dir + "/golden/",
+                              dir,
                             ])
         sources += [ src ]
 
@@ -733,9 +739,9 @@
           } else if (outExtension == ".asm.frag" && ext == "geom") {
             outExtension = ".asm.geom"
           }
-          outputs += [ target_out_dir + "/" +
-                       rebase_path(dir + "/golden/" + name + outExtension,
-                                   target_out_dir) ]
+          outputs +=
+              [ target_out_dir + "/" +
+                rebase_path(dir + "/" + name + outExtension, target_out_dir) ]
         }
       }
     }