1133 Commits

Author SHA1 Message Date
Dan Field
9e46531319 Remove redundant trace events (flutter/engine#32812) 2022-04-21 13:28:03 -07:00
Chris Bracken
191c992268 Eliminate use of Dart new keyword in doc comments (flutter/engine#32823)
We made the Dart 'new' keyword optional years ago, but appears we missed
removing it in a few doc comments.
2022-04-20 17:08:08 -07:00
Chris Bracken
a970f9766a Minor unique_ptr initialization cleanup (flutter/engine#32821)
Cleans up a few cases of std::unique_ptr(new T) that could have been
using std::make_unique<T>(...).
2022-04-20 17:08:00 -07:00
Jason Simmons
c8aa503a12 Fix the CanvasPath::CreateNew signature to avoid unnecessary Dart API::NewError calls (flutter/engine#32791) 2022-04-20 07:24:04 -07:00
Jim Graham
1c35cc7dc2 make sure to sync PathEffet to null for Dart Canvas rendering (flutter/engine#32672) 2022-04-14 12:39:04 -07:00
Dan Field
54c6c59f40 Roll Impeller to flutter/impeller@5b60aea4ae (flutter/engine#32679) 2022-04-14 11:34:04 -07:00
Kaushik Iska
34b8d9e5d0 Revert "Roll impeller to flutter/impeller@a93986f7e5 (#32658)" (flutter/engine#32677)
This reverts commit 05f6174e7f27154a00cc07850c26f9356a41de96.
2022-04-14 11:52:18 -04:00
Dan Field
05f6174e7f Roll impeller to flutter/impeller@a93986f7e5 (flutter/engine#32658) 2022-04-13 22:59:04 -07:00
Dan Field
4101b52aca Unify unhandled error reporting, add PlatformDispatcher.onError (flutter/engine#32078) 2022-04-09 14:44:04 -07:00
Chris Bracken
6b7a734450 Uncomment SemanticsFlag.isMultiline in enums (flutter/engine#32440)
Uncomments the Java Flag.IS_MULTILINE and C++ SemanticsFlag.kIsMultiline
enum values. While these values aren't used in the Android or iOS
embeddings, in practice we maintain the same set of enum values across
all embeddings so as to match the public API defined in dart:ui, found
in lib/ui/semantics/semantics.dart.

This also helps with automated checking that all enums across all
languages are consistent.

This will be added to the embedder API in
https://github.com/flutter/engine/pull/32332.

Issue: https://github.com/flutter/flutter/issues/101217
2022-04-06 09:59:48 -07:00
Jim Graham
b8d19a2d36 assertion failure on empty indices in ui.Vertices constructor (flutter/engine#32434) 2022-04-05 14:56:04 -07:00
Chris Bracken
9710156fe2 Fix SemanticsAction naming consistency (flutter/engine#32411)
Removes the `Index` suffix from kMoveCursorForwardByWord and
kMoveCursorBackwardByWord values in the SemanticsAction enum. These were
erroneously copied as-is from the private class members in the dart:ui
implementation in lib/ui/semantics/semantics.dart where the class
members refer to the enum index here. This removes the trailing `Index`
for consistency with the other enum members here.

This is also useful in the context of automated testing for API
consistency between these enums, the ones in dart:ui (native and web
implementations) and the embedder API.

Issue: https://github.com/flutter/flutter/issues/101217
2022-04-04 17:07:05 -07:00
Chris Bracken
a551b91c78 Fix inconsistent enum/class private member naming (flutter/engine#32409)
Classes that model enums in dart:ui typically name fields modelling the
enum values as `_kFooIndex`. This associated value matches the enum
value from embedder.h.

In https://github.com/flutter/engine/pull/32408 we add a test that
verifies that dart:ui classes model the same set of values in the native
implementation, the web_ui implementation, and the embedder API. Testing
this is much simpler if we use consistent naming for all enum values.

Issue: https://github.com/flutter/engine/pull/32408
2022-04-04 13:17:07 -07:00
fzyzcjy
a6ca392650 Create ImageFilter.dilate/ImageFilter.erode (flutter/engine#32334) 2022-04-04 13:01:02 -07:00
ColdPaleLight
42c38f7e45 Fix fatal crash of ImageDecoderFixtureTest.ExifDataIsRespectedOnDecode (flutter/engine#32356) 2022-03-31 13:04:55 -07:00
Jim Graham
93be6c2ec4 Add dl vertices object (flutter/engine#32329) 2022-03-31 00:15:04 -07:00
Chinmay Garde
351494f717 Add support for images in display lists. (flutter/engine#32268) 2022-03-30 13:31:37 -07:00
Jason Simmons
c133cad506 Add an API for variable font axes in TextStyle and connect it to SkParagraph (flutter/engine#32245) 2022-03-28 13:35:02 -07:00
fzyzcjy
975541c7c5 Fix simple typo: or or (flutter/engine#32133) 2022-03-21 21:00:03 -07:00
Jim Graham
eaf55ab6a9 Add DlImageFilter objects (flutter/engine#32140) 2022-03-21 13:55:08 -07:00
Jim Graham
3893fdd735 fix display list include path in ui.painting sources (flutter/engine#32143) 2022-03-20 13:09:43 -07:00
JsouLiang
978758650d Use new DlBlendMode Object (flutter/engine#32026) 2022-03-19 14:10:07 -07:00
Jonah Williams
ab2ea2006c ensure _futurize does not leak uncaught errors into the zone (flutter/engine#32070) 2022-03-17 11:05:06 -07:00
Jim Graham
6027899f48 Add DlColorSource objects to hold information for SkShaders (flutter/engine#31981) 2022-03-15 16:55:04 -07:00
Robert Ancell
e362802905 Add systemFontFamily to flutter/settings channel (flutter/engine#22981)
This allows a shell to set the system font to use by default.
2022-03-14 14:07:05 +13:00
Rutger Vromans
8c42b89cdf Access on/off labels accessibility setting for switches on iOS (flutter/engine#30764) 2022-03-07 14:51:10 -08:00
Jonah Williams
40a5c49645 [ui] cleanup natives.dart (flutter/engine#31776) 2022-03-03 13:01:12 -08:00
gaaclarke
70271f2263 Add Dart entrypoint to execute the dart plugin registrant. (flutter/engine#31720)
* Adds Dart entrypoint to execute the dart plugin registrant.

* added negative test and added web ui interface

* removed linter warning
2022-03-02 17:50:23 -08:00
Jonah Williams
7b9610bab6 [ui] replace dynamic with Object? (flutter/engine#31771) 2022-03-02 14:21:11 -08:00
Dan Field
e7e410d3e1 Fix invalid usage of typed data detected via dart_debug=true (flutter/engine#31745) 2022-03-02 14:11:10 -08:00
Jim Graham
80605e564d detect cases when Skia nops filters by returning nullptr to prevent crashes (flutter/engine#31689) 2022-02-25 17:00:11 -08:00
Jim Graham
71f1c1990a DlAttribute base class (flutter/engine#31672) 2022-02-25 11:51:02 -08:00
Jim Graham
3b5ec940af DisplayList DlMaskFilter objects (flutter/engine#31535) 2022-02-18 09:19:09 -08:00
Jim Graham
61433672fa Displaylist ColorFilter objects (flutter/engine#31491) 2022-02-17 11:19:11 -08:00
Dan Field
93d8ed15f0 Expose picture.debugDisposed, make sure we do not crash when working with disposed pictures (flutter/engine#31453) 2022-02-14 18:25:02 -08:00
Callum Moffat
8a1f4d07f3 Reland: Trackpad gesture PointerData types (flutter/engine#31402)
This commit adds support to the engine core for encoding trackpad gestures for to the framework. Original PR was #28571
2022-02-11 14:02:09 -08:00
JsouLiang
493cfd9601 Define thread priority enum and set thread priority for all threads in Engine (flutter/engine#30605)
* Define thread priority enum and set thread priority for all threads in Engine

* Split out the thread data and the thread data set operator
2022-02-10 21:14:54 -08:00
Tong Mu
367cff931a Revert "Add trackpad gesture PointerData types (#28571)" (flutter/engine#31375)
This reverts commit 66b5a1c1eb5b20fe22b87ae1de19b6ade2bb19f8.
2022-02-10 08:41:03 -08:00
Callum Moffat
66b5a1c1eb Add trackpad gesture PointerData types (flutter/engine#28571)
* Implement trackpad gestures in engine

* Remove the platform implementations

* Add new device type for trackpad

* Add back the necessary changes for Android

* Address feedback

* Fix doc typos
2022-02-09 21:50:40 -08:00
Zachary Anderson
eca60c0b90 Add clang-analyzer-* and clang-diagnostic-* to .clang-tidy (flutter/engine#31291) 2022-02-09 12:26:34 -08:00
Clement Skau
c988119386 Adds Tonic templates for Dart FFI bindings. (flutter/engine#29405)
This change adds additional Tonic templates for automatically generating bindings for Dart FFI, as well as serialisation of the bindings.

- Adds parallel FfiDispather templates to the existing DartDispatcher used for (old) native bindings.
- Adds serialisation of the bindings to enable automatic conversion and verification.
- Extends existing DartConverters with conversions to and from the FFI transport types.
- Adds new test (ffi_native_unittest.cc) for the above.

This will allow us to replace the existing native functions in e.g. dart:ui with new Dart FFI native functions.
2022-02-08 08:57:55 +01:00
MasahideMori-SimpleAppli
ed6e36f3c1 [Update][Proposal] Improve Canvas Documentation (flutter/engine#31153) 2022-02-05 12:20:10 -08:00
Brian Osman
9eb7120212 Remove (deprecated) isOpaque parameter to SkSL shaders (flutter/engine#31242)
SkSL now determines this automatically, so the isOpaque paramter is
going away. The local matrix parameter now has a nullptr default.
2022-02-04 12:40:38 -05:00
LongCatIsLooong
87bdc6747d [Android] expose "textShowPassword" to the framework (flutter/engine#30780) 2022-02-01 12:55:10 -08:00
eggfly
42cc820c92 Cleanup unused code in the UIDartState and other tests. (flutter/engine#31152) 2022-01-31 18:20:02 -08:00
Brandon DeRosier
925224a9ee Prefix remaining OS defines with FML_ namespace (flutter/engine#31172) 2022-01-31 14:31:44 -08:00
Brandon DeRosier
2d4f908b9d Add FML_ prefix to fml/build_config.h macros (flutter/engine#31141) 2022-01-31 11:53:51 -08:00
Greg Spencer
62fbe04ce3 Remove redundant --template arguments from code samples (flutter/engine#30909)
This removes redundant --template arguments from the samples that I should have removed before in #30827 .

Also, fixed a bunch of spelling misteaks.
2022-01-18 14:19:51 -08:00
Greg Spencer
ebc5211ad2 Extract samples in text.dart to flutter/flutter's examples/api directory (flutter/engine#30827)
This extracts the API samples from ui/lib/text.dart so that they may be moved to flutter/flutter's examples/api/lib/ui directory.

No tests, comment only change.
2022-01-14 15:43:42 -08:00
Mouad Debbar
f111c9f844 [web] Move ui files to lib/ (flutter/engine#30051) 2022-01-14 11:20:10 -08:00