Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

bkonyi
Copy link
Contributor

@bkonyi bkonyi commented Feb 13, 2020

This API is being removed from the Dart SDK.

This API is being removed from the Dart SDK.
@bkonyi bkonyi requested a review from chinmaygarde February 13, 2020 23:11
@bkonyi bkonyi force-pushed the remove_dart_native_allocate branch from 3eec4ee to 743efd6 Compare February 14, 2020 19:45
@chinmaygarde
Copy link
Member

A quick audit of the existing classes that specify type info for a wrappable yielded the following list. Please ensure these have the _ named constructor:

  • Scene
  • SceneBuilder
  • SceneHost
  • Canvas
  • Codec
  • ColorFilter
  • EngineLayer
  • FrameInfo
  • CanvasGradient
  • CanvasImage
  • ImageFilter
  • ImageShader
  • CanvasPath
  • CanvasPathMeasure
  • Picture
  • PictureRecorder
  • Shader
  • Vertices
  • SemanticsUpdate
  • SemanticsUpdateBuilder
  • Paragraph
  • ParagraphBuilder
  • Handle (zircon)
  • HandleWaiter (zircon)
  • System (zircon)

@chinmaygarde chinmaygarde self-requested a review February 14, 2020 20:52
@jason-simmons
Copy link
Member

I think that some of these classes (e.g. ParagraphBuilder) do not have a no-argument constructor and are never constructed by DartWrappable::CreateDartWrapper.

These classes should not have the underscore constructor. We should also remove the @pragma('vm:entry-point') annotation on the constructor if it is never invoked from native code.

@bkonyi
Copy link
Contributor Author

bkonyi commented Feb 14, 2020

Tests seem to be passing and Flutter Gallery runs without issue. I'm going to go ahead and land this (Fuchsia bot is having infra issues, so landing on red).

@bkonyi bkonyi merged commit 4941ff7 into master Feb 14, 2020
@bkonyi bkonyi deleted the remove_dart_native_allocate branch February 14, 2020 21:55
@dnfield
Copy link
Contributor

dnfield commented Feb 14, 2020

@bkonyi the Fuchsia failures are real. This patch will not be rollable into the framework as-is.

engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 15, 2020
jason-simmons pushed a commit to flutter/flutter that referenced this pull request Feb 18, 2020
* c0549fb Roll buildroot. (flutter/engine#16613)

* 8b0b649 improve surface state assert error messages (flutter/engine#16595)

* cd77e78 Fix drawRRect failure when shader is specified (flutter/engine#16601)

* fe63094 [web] Handle alignment correctly in Paragraph.getPositionForOffset (flutter/engine#16569)

* 65d1126 [web] Fixing launching Safari. This should solve the LUCI issue (flutter/engine#16590)

* f88f7df [web] Unskip tests that are already passing in Safari (flutter/engine#16567)

* 594f660 [shell tests] Integrate Vulkan with Shell Tests

* 400ed7c Revert "[shell tests] Integrate Vulkan with Shell Tests"

* 15e7f51 Implement Path extractPath, tangent APIs (flutter/engine#16599)

* 4941ff7 Remove usage of Dart_AllocateWithNativeFields from tonic (flutter/engine#16588)

* bb01cb7 Roll fuchsia/sdk/core/linux-amd64 from Bmq1m... to J-_s6... (flutter/engine#16592)
dnfield added a commit that referenced this pull request Feb 19, 2020
dnfield added a commit that referenced this pull request Feb 19, 2020
NoamDev pushed a commit to NoamDev/engine that referenced this pull request Feb 27, 2020
NoamDev pushed a commit to NoamDev/engine that referenced this pull request Feb 27, 2020
NoamDev added a commit to NoamDev/engine that referenced this pull request Feb 27, 2020
NoamDev added a commit to NoamDev/engine that referenced this pull request Feb 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants