[transformer] Remove deprecated Manager constructor

Also moves the type determiner call out of the transformers into the
manager.
Cleans up the code to not have anything directly calling
Run() on the transformers other then the manager.

Bug: tint:308
Change-Id: I3343f2ba16dae6fb33f35e390ae4c797f2a05522
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/33262
Auto-Submit: Ryan Harrison <rharrison@chromium.org>
Commit-Queue: dan sinclair <dsinclair@chromium.org>
Reviewed-by: dan sinclair <dsinclair@chromium.org>
This commit is contained in:
Ryan Harrison
2020-11-18 19:40:00 +00:00
committed by Commit Bot service account
parent c7f51b7d3c
commit 40e3ccda33
9 changed files with 64 additions and 49 deletions

View File

@@ -507,7 +507,7 @@ int main(int argc, const char** argv) {
return 1;
}
tint::transform::Manager transform_manager;
tint::transform::Manager transform_manager(&ctx, &mod);
for (const auto& name : options.transforms) {
// TODO(dsinclair): The vertex pulling transform requires setup code to
// be run that needs user input. Should we find a way to support that here