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 11b7a92ef860e35e8f98598667f423762d3e7586..ccbfd2404cff28941ee2dff6e8bd3f0ba7202456 100644 |
--- a/sky/engine/bindings/scripts/dart_types.py |
+++ b/sky/engine/bindings/scripts/dart_types.py |
@@ -120,8 +120,10 @@ CPP_SPECIAL_CONVERSION_RULES = { |
# dart_value_to_cpp_value using CPP_SPECIAL_CONVERSION_RULES directly |
# instead of calling cpp_type. |
'Float32List': 'Float32List', |
+ 'Offset': 'Offset', |
'Point': 'Point', |
'Rect': 'Rect', |
+ 'Size': 'Size', |
'MojoDataPipeConsumer': 'mojo::ScopedDataPipeConsumerHandle', |
'TileMode': 'SkShader::TileMode', |
'TransferMode': 'SkXfermode::Mode', |
@@ -372,8 +374,10 @@ DART_TO_CPP_VALUE = { |
# Pass-by-value types. |
'Color': pass_by_value_format('CanvasColor'), |
'Float32List': pass_by_value_format('Float32List'), |
+ 'Offset': pass_by_value_format('Offset'), |
'Point': pass_by_value_format('Point'), |
'Rect': pass_by_value_format('Rect'), |
+ 'Size': pass_by_value_format('Size'), |
'TileMode': pass_by_value_format('TileMode', ''), |
'TransferMode': pass_by_value_format('TransferMode', ''), |
'PaintingStyle': pass_by_value_format('PaintingStyle', ''), |