From 4ae23020fad50624ede13bd306cb6980b4155dcf Mon Sep 17 00:00:00 2001 From: Samir Jindel Date: Mon, 22 Oct 2018 21:03:57 +0200 Subject: [PATCH 1/2] Add missing entry-points. --- lib/ui/compositing.dart | 1 + lib/ui/painting.dart | 6 ++++++ lib/ui/text.dart | 1 + 3 files changed, 8 insertions(+) diff --git a/lib/ui/compositing.dart b/lib/ui/compositing.dart index 935a1665248da..1ddde2afcc5a2 100644 --- a/lib/ui/compositing.dart +++ b/lib/ui/compositing.dart @@ -10,6 +10,7 @@ part of dart.ui; /// /// Scene objects can be displayed on the screen using the /// [Window.render] method. +@pragma("vm:entry-point") class Scene extends NativeFieldWrapperClass2 { /// This class is created by the engine, and should not be instantiated /// or extended directly. diff --git a/lib/ui/painting.dart b/lib/ui/painting.dart index 98a6a4dfb1ad6..d6b20feaf940d 100644 --- a/lib/ui/painting.dart +++ b/lib/ui/painting.dart @@ -1503,6 +1503,7 @@ class _ImageInfo { /// /// To draw an [Image], use one of the methods on the [Canvas] class, such as /// [Canvas.drawImage]. +@pragma("vm:entry-point") class Image extends NativeFieldWrapperClass2 { /// This class is created by the engine, and should not be instantiated /// or extended directly. @@ -1550,6 +1551,7 @@ typedef ImageDecoderCallback = void Function(Image result); /// /// To obtain an instance of the [FrameInfo] interface, see /// [Codec.getNextFrame]. +@pragma("vm:entry-point") class FrameInfo extends NativeFieldWrapperClass2 { /// This class is created by the engine, and should not be instantiated /// or extended directly. @@ -1568,6 +1570,7 @@ class FrameInfo extends NativeFieldWrapperClass2 { } /// A handle to an image codec. +@pragma("vm:entry-point") class Codec extends NativeFieldWrapperClass2 { /// This class is created by the engine, and should not be instantiated /// or extended directly. @@ -1762,6 +1765,7 @@ enum PathOperation { } /// A handle for the framework to hold and retain an engine layer across frames. +@pragma("vm:entry-point") class EngineLayer extends NativeFieldWrapperClass2 { /// This class is created by the engine, and should not be instantiated /// or extended directly. @@ -1786,6 +1790,7 @@ class EngineLayer extends NativeFieldWrapperClass2 { /// /// Paths can be drawn on canvases using [Canvas.drawPath], and can /// used to create clip regions using [Canvas.clipPath]. +@pragma("vm:entry-point") class Path extends NativeFieldWrapperClass2 { /// Create a new empty [Path] object. @pragma('vm:entry-point') @@ -3580,6 +3585,7 @@ class Canvas extends NativeFieldWrapperClass2 { /// A [Picture] can be placed in a [Scene] using a [SceneBuilder], via /// the [SceneBuilder.addPicture] method. A [Picture] can also be /// drawn into a [Canvas], using the [Canvas.drawPicture] method. +@pragma("vm:entry-point") class Picture extends NativeFieldWrapperClass2 { /// This class is created by the engine, and should not be instantiated /// or extended directly. diff --git a/lib/ui/text.dart b/lib/ui/text.dart index 664cbaedef276..e2c61fac86350 100644 --- a/lib/ui/text.dart +++ b/lib/ui/text.dart @@ -956,6 +956,7 @@ class ParagraphConstraints { /// /// Paragraphs can be displayed on a [Canvas] using the [Canvas.drawParagraph] /// method. +@pragma("vm:entry-point") class Paragraph extends NativeFieldWrapperClass2 { /// This class is created by the engine, and should not be instantiated /// or extended directly. From c4580d904e442dc191eda0523267d7dba53c736c Mon Sep 17 00:00:00 2001 From: Samir Jindel Date: Thu, 25 Oct 2018 12:57:46 +0200 Subject: [PATCH 2/2] Fix lint --- lib/ui/compositing.dart | 2 +- lib/ui/painting.dart | 12 ++++++------ lib/ui/text.dart | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/ui/compositing.dart b/lib/ui/compositing.dart index 1ddde2afcc5a2..b4e22cf7ab07f 100644 --- a/lib/ui/compositing.dart +++ b/lib/ui/compositing.dart @@ -10,7 +10,7 @@ part of dart.ui; /// /// Scene objects can be displayed on the screen using the /// [Window.render] method. -@pragma("vm:entry-point") +@pragma('vm:entry-point') class Scene extends NativeFieldWrapperClass2 { /// This class is created by the engine, and should not be instantiated /// or extended directly. diff --git a/lib/ui/painting.dart b/lib/ui/painting.dart index d6b20feaf940d..032a7047daafa 100644 --- a/lib/ui/painting.dart +++ b/lib/ui/painting.dart @@ -1503,7 +1503,7 @@ class _ImageInfo { /// /// To draw an [Image], use one of the methods on the [Canvas] class, such as /// [Canvas.drawImage]. -@pragma("vm:entry-point") +@pragma('vm:entry-point') class Image extends NativeFieldWrapperClass2 { /// This class is created by the engine, and should not be instantiated /// or extended directly. @@ -1551,7 +1551,7 @@ typedef ImageDecoderCallback = void Function(Image result); /// /// To obtain an instance of the [FrameInfo] interface, see /// [Codec.getNextFrame]. -@pragma("vm:entry-point") +@pragma('vm:entry-point') class FrameInfo extends NativeFieldWrapperClass2 { /// This class is created by the engine, and should not be instantiated /// or extended directly. @@ -1570,7 +1570,7 @@ class FrameInfo extends NativeFieldWrapperClass2 { } /// A handle to an image codec. -@pragma("vm:entry-point") +@pragma('vm:entry-point') class Codec extends NativeFieldWrapperClass2 { /// This class is created by the engine, and should not be instantiated /// or extended directly. @@ -1765,7 +1765,7 @@ enum PathOperation { } /// A handle for the framework to hold and retain an engine layer across frames. -@pragma("vm:entry-point") +@pragma('vm:entry-point') class EngineLayer extends NativeFieldWrapperClass2 { /// This class is created by the engine, and should not be instantiated /// or extended directly. @@ -1790,7 +1790,7 @@ class EngineLayer extends NativeFieldWrapperClass2 { /// /// Paths can be drawn on canvases using [Canvas.drawPath], and can /// used to create clip regions using [Canvas.clipPath]. -@pragma("vm:entry-point") +@pragma('vm:entry-point') class Path extends NativeFieldWrapperClass2 { /// Create a new empty [Path] object. @pragma('vm:entry-point') @@ -3585,7 +3585,7 @@ class Canvas extends NativeFieldWrapperClass2 { /// A [Picture] can be placed in a [Scene] using a [SceneBuilder], via /// the [SceneBuilder.addPicture] method. A [Picture] can also be /// drawn into a [Canvas], using the [Canvas.drawPicture] method. -@pragma("vm:entry-point") +@pragma('vm:entry-point') class Picture extends NativeFieldWrapperClass2 { /// This class is created by the engine, and should not be instantiated /// or extended directly. diff --git a/lib/ui/text.dart b/lib/ui/text.dart index e2c61fac86350..b6bbbe101ca92 100644 --- a/lib/ui/text.dart +++ b/lib/ui/text.dart @@ -956,7 +956,7 @@ class ParagraphConstraints { /// /// Paragraphs can be displayed on a [Canvas] using the [Canvas.drawParagraph] /// method. -@pragma("vm:entry-point") +@pragma('vm:entry-point') class Paragraph extends NativeFieldWrapperClass2 { /// This class is created by the engine, and should not be instantiated /// or extended directly.