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

Unified Diff: sky/engine/bindings/scripts/dart_types.py

Issue 1171543002: Use an enum for Dart bindings for Skia Paint style (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « no previous file | sky/engine/core/core.gni » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/bindings/scripts/dart_types.py
diff --git a/sky/engine/bindings/scripts/dart_types.py b/sky/engine/bindings/scripts/dart_types.py
index d1f07db17ff4acd8163cd5c88f985b20c3100536..11f10578c9176d6fd1a7f076d27799bfecf03cce 100644
--- a/sky/engine/bindings/scripts/dart_types.py
+++ b/sky/engine/bindings/scripts/dart_types.py
@@ -120,6 +120,7 @@ CPP_SPECIAL_CONVERSION_RULES = {
'Point': 'Point',
'Rect': 'Rect',
'TransferMode': 'SkXfermode::Mode',
+ 'PaintingStyle': 'SkPaint::Style',
}
@@ -368,6 +369,7 @@ DART_TO_CPP_VALUE = {
'Point': pass_by_value_format('{implemented_as}'),
'Rect': pass_by_value_format('{implemented_as}'),
'TransferMode': pass_by_value_format('TransferMode'),
+ 'PaintingStyle': pass_by_value_format('PaintingStyle'),
}
« no previous file with comments | « no previous file | sky/engine/core/core.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698