Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Unified Diff: mojo/public/tools/bindings/pylib/mojom/generate/generator.py

Issue 1572213002: Precompile mojom bindings generator jinja templates. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: mojo/public/tools/bindings/pylib/mojom/generate/generator.py
diff --git a/mojo/public/tools/bindings/pylib/mojom/generate/generator.py b/mojo/public/tools/bindings/pylib/mojom/generate/generator.py
index 8c3e6427d9e72df4e2f9f38b36d66e5fe61b6822..9c225b437a010bb4cbecc6d55ad695b47661397b 100644
--- a/mojo/public/tools/bindings/pylib/mojom/generate/generator.py
+++ b/mojo/public/tools/bindings/pylib/mojom/generate/generator.py
@@ -40,11 +40,13 @@ def WriteFile(contents, full_path):
class Generator(object):
# Pass |output_dir| to emit files to disk. Omit |output_dir| to echo all
# files to stdout.
- def __init__(self, module, output_dir=None, typemap={}, variant=None):
+ def __init__(self, module, output_dir=None, typemap=None, variant=None,
+ bytecode_path=None):
self.module = module
self.output_dir = output_dir
- self.typemap = typemap
+ self.typemap = typemap or {}
self.variant = variant
+ self.bytecode_path = bytecode_path
def GetStructsFromMethods(self):
result = []

Powered by Google App Engine
This is Rietveld 408576698