307 Commits

Author SHA1 Message Date
Chinmay Garde
c9f71542d1 Disable GPUThreadMerger tests inline instead of via harness flags. (flutter/engine#15706) 2020-01-16 17:11:54 -08:00
Dan Field
44c0db9c57 implicit casts and add missing docs (flutter/engine#15698) 2020-01-16 17:03:33 -08:00
chunhtai
0955ec77b3 loadfontfromlist should send fontchange message to framework (flutter/engine#14805) 2020-01-16 17:03:04 -08:00
Dan Field
1a91d5fb85 const finder (flutter/engine#15668) 2020-01-16 17:01:20 -08:00
Chinmay Garde
8c735c8123 Disable fml_unittests till flakes are addressed. (flutter/engine#15676) 2020-01-15 12:04:36 -08:00
Dan Field
010b6224cd try 10 times (flutter/engine#15653) 2020-01-14 17:58:07 -08:00
LongCatIsLooong
530cf1c010 Reland "Bump simulator version in IosUnitTests & scenario app in preparation for luci xcode 11 migration (#15316)", Reverted in #15313
This reverts commit e1c106dc703463880013285c0c137540dc3ceec4.
2020-01-08 12:06:15 -08:00
LongCatIsLooong
e1c106dc70 Revert "Bump simulator version in IosUnitTests & scenario app in preparation for luci xcode 11 migration (#15154)" (flutter/engine#15313)
This reverts commit ea4661f61bf51848c6436777c0feb0c7c4bd00fa.
2020-01-08 10:43:32 -08:00
LongCatIsLooong
ea4661f61b Bump simulator version in IosUnitTests & scenario app in preparation for luci xcode 11 migration (flutter/engine#15154) 2020-01-08 10:05:56 -08:00
Dan Field
a0b01fb79e Font subset (flutter/engine#14828) 2020-01-07 07:48:15 -08:00
liyuqian
9be381a891 Run and collect benchmarks (flutter/engine#14556)
This will start to collect engine benchmarks in the flutter-cirrus
Datastore for all post-submit commits.

We're using this to test how https://github.com/liyuqian/metrics_center
works. Once it's stablized, we should move metrics_center into
flutter/packages, and migrate data to flutter-infra Datastore.

Related issue: https://github.com/flutter/flutter/issues/37434
2019-12-23 17:22:01 -08:00
Jim Graham
77b9134e96 Engine support for ImageFiltered widget (flutter/engine#14491)
web_ui support coming in https://github.com/flutter/flutter/issues/47163
2019-12-19 16:47:08 -08:00
George Wright
b44f4ae767 Fix message_loop_fuchsia and thus enable fml_tests and flow_tests for Fuchsia (flutter/engine#14583) 2019-12-19 17:25:06 -05:00
Lau Ching Jun
288a793a46 Revert "Fix off-by-one fromRGBO alpha value calculation (#13777)" (flutter/engine#14548)
This reverts commit dc0401f8e483fd698529d9376dc806b85038093f.
2019-12-18 00:22:50 -08:00
Tomás Arias
dc0401f8e4 Fix off-by-one fromRGBO alpha value calculation (flutter/engine#13777)
Constructing colors using `fromRGBO` should return the same values as the CSS
`rgba()` notation.  rgba(0, 0, 255, 0.5) is the same as `#0000ff80`

However `fromRGBO` sometimes creates a color with an off-by-one alpha value:

    expect(Color.fromRGBO(0, 0, 255, 0.5), Color(0x800000ff));

Expected: Color:<Color(0x800000ff)>
  Actual: Color:<Color(0x7f0000ff)>

If we use `withOpacity` to create the same color, it returns the correct color:

    expect(Color.fromRGBO(0, 0, 255, 1).withOpacity(0.5), Color(0x800000ff));

This should also be changed in lib/web_ui/lib/src/ui/painting.dart in a
followup change.
2019-12-17 09:34:30 -08:00
Chinmay Garde
b111a13d25 Allow embedders to post Dart objects on send ports from the native side. (flutter/engine#14477)
This is a non-breaking addition to the stable Flutter Embedder API and exposes a
subset of the functionality provided by Dart_PostCObject API in a stable and
tested manner to custom embedder implementations.

Send port acquisition can currently be done as described in the unit-test but
there may be opportunities to extend this API in the future to access ports more
easily or create ports from the native side.

The following capabilities of the the Dart_PostCObject API are explicitly NOT
exposed:
* Object arrays: This allows callers to create complex object graphs but only
  using the primitives specified in the native API. I could find no current use
  case for this and would have made the implementation a lot more complex. This
  is something we can add in the future if necessary however.
* Capabilities and ports: Again no use cases and I honestly I didn’t understand
  how to use capabilities. If needed, these can be added at a later point by
  appending to the union.

Fixes https://github.com/flutter/flutter/issues/46624
Fixes b/145982720
2019-12-13 17:28:21 -08:00
Dwayne Slater
f7eb74c11f Add ability to control dithering on Paint (flutter/engine#13868) 2019-12-11 14:53:50 -08:00
gaaclarke
e479d6ad89 Started setting the FlutterOverlayView's bounds when it gets added to its superview. (flutter/engine#14018) 2019-12-05 13:53:07 -08:00
George Wright
4d705b966b Move Fuchsia unit test runners into engine repo (flutter/engine#14092)
- Copies fuchsia_test.sh into the testing/fuchsia directory
- Fixes a small issue with fuchsia_archive to ensure the cmx file is correctly named according to the target
- Add a list of fuchsia unittest fars to run on CI
- Add a GN build target to build all currently-enabled unittests for Fuchsia
2019-12-05 02:35:42 -05:00
gaaclarke
2e76a5cba2 Started specifying the OS version for running the tests. (flutter/engine#14094) 2019-12-04 16:17:43 -08:00
gaaclarke
2b17a09b85 Expanded our scenario_app docs. (flutter/engine#14136) 2019-12-04 15:11:54 -08:00
Brian Osman
1cbaa6ddfb Fix one more use of deprecated path fill type API (flutter/engine#14127) 2019-12-04 10:59:06 -05:00
David Worsham
df08c2593a Relanding: Add Flow unittests and fixtures (flutter/engine#14091) 2019-12-03 14:33:02 -08:00
liyuqian
52e74298e0 Revert PRs to unblock David and Jim's work (flutter/engine#14088)
* Revert "Add flow test fixtures and tests (#13986)"

This reverts commit 32915132bacdfd0d631421b23bb6a6d5db1095ab.

* Revert "Dynamically determine whether to use offscreen surface based on need (#13976)"

This reverts commit a13401ce86b3019c39154d56644b7b9eb4a5bbe5.
2019-12-03 12:02:37 -08:00
David Worsham
32915132ba Add flow test fixtures and tests (flutter/engine#13986) 2019-12-03 09:43:02 -08:00
liyuqian
241e5108b8 Run benchmarks in Cirrus (flutter/engine#13950) 2019-12-02 16:38:03 -08:00
Jim Graham
df3a909cfd Show test output when engine unit test fails. (flutter/engine#14026) 2019-11-26 22:05:43 -08:00
Chinmay Garde
1405016707 Add a separate target for Dart coverter on FML types. (flutter/engine#14011)
The converters are still in a separate target that must be included manually. This allows targets that depend on FML but not Dart runtime not have to depend on the runtime.

Adds a test that includes this target and tests image decompression from assets. There is also a test for the standalone DartConvertor in shell_unittests but not in fml_unittests be cause FML uni-tests cannot yet launch a VM. I will work on adding fixtures for those.
2019-11-26 13:33:56 -08:00
David Worsham
5aa9e07326 Fix most fml tests on Fuchsia (flutter/engine#14007)
* Add fuchsia MessageLoopImpl; fix several tests
2019-11-25 14:16:50 -08:00
Amir Hardon
1575b8224f revert accidental change to MultipePlatformViewsTest (flutter/engine#13481) 2019-11-25 12:33:23 -08:00
Chinmay Garde
51da19b944 PR 2019-11-22 23:03:34 -08:00
Chinmay Garde
2866095b58 Setup a Metal test surface and add a new unit-test target that tests the testing utilities.
`//flutter/testing` now contains a lot of utilities used by other test targets.
This includes stuff like working with render targets that use either OpenGL or
Metal, fixtures for interacting with the Dart VM, test assertion predicates,
etc.. However, these utilities themselves are not tested as part of a standalone
test suite. Instead, only the test targets that include it exercise these
utilities. Since these are no longer trivial, a new test target has been added
that tests the testing utilities directly.
2019-11-22 23:03:34 -08:00
Jim Graham
c8ad84b60d Imagefilter wrapper object (flutter/engine#13711)
Make ImageFilter objects comparable and printable.

This will help in areas in the Widget and RenderObject trees which try to avoid marking objects for updates if a setter is called with the same value (previously all ImageFilter objects would compare as not equal and appear to be new values).
2019-11-19 13:43:06 -08:00
Todd Volkert
02a18868b3 Revert "RendererContextSwitch guard flutter's gl context rework. (#13812)" (flutter/engine#13906)
This reverts commit 7552e9370527aae8df06b43dcb6b313d9ebdb365.

This is being reverted because it caused flutter/flutter#45098
(images don't load on iOS).
2019-11-18 18:28:04 -08:00
Chris Yang
7552e93705 RendererContextSwitch guard flutter's gl context rework. (flutter/engine#13812) 2019-11-14 11:50:45 -08:00
chunhtai
7787960f0c reland add lifecycle enum (flutter/engine#13767)
This reverts commit 5e7e183369b3816650f776c767e241bb98a87276.
2019-11-13 11:26:25 -08:00
Chris Yang
590dc94eb8 Revert "Reland "Guarding EAGLContext used by Flutter #13314" (#13759)" (flutter/engine#13788)
This reverts commit 6390e62036d69c4923cc6cf2379b9eb9f25870ba.
2019-11-11 17:17:18 -08:00
Chris Yang
6390e62036 Reland "Guarding EAGLContext used by Flutter #13314" (flutter/engine#13759) 2019-11-08 20:09:18 -08:00
Chris Yang
68754a85f0 Revert "Reland "Guarding EAGLContext used by Flutter #13314" (#13755)" (flutter/engine#13757)
This reverts commit a4a346f317c867663a6d8a5d9c7909101d9b5cbd.
2019-11-08 13:44:29 -08:00
Chris Yang
a4a346f317 Reland "Guarding EAGLContext used by Flutter #13314" (flutter/engine#13755) 2019-11-08 12:26:48 -08:00
Greg Spencer
d7e49ecd5b Move TextRange from the framework to dart:ui. (flutter/engine#13747)
This removes TextRange from the framework and moves it to the engine, in preparation for using it to return text ranges from the text extent APIs, like Paragraph.getWordBoundary instead of a List<int>.

Also added new tests for TextRange.
2019-11-08 12:21:46 -08:00
Chris Yang
af43ff4a31 Revert "Always use IOSGLContextSwitch to access EAGLContexts to prevent plugins from polluting Flutter's EAGLContext (#13314)" (flutter/engine#13753) 2019-11-08 10:59:45 -08:00
Chris Yang
4953fbdd3f Always use IOSGLContextSwitch to access EAGLContexts to prevent plugins from polluting Flutter's EAGLContext (flutter/engine#13314) 2019-11-08 10:02:23 -08:00
Alexander Markov
01365aaf02 Cleanup obsolete --strong option of front-end server (flutter/engine#13735) 2019-11-07 13:34:55 -08:00
George Wright
04e239fc43 Package fml_unittests in a .far file for fml unit tests on Fuchsia (flutter/engine#13471)
Add fml_tests target for the fml unit tests on Fuchsia
2019-11-06 13:01:54 -08:00
chunhtai
5e7e183369 Revert "Issues/39832 reland (#13642)" (flutter/engine#13720)
This reverts commit a1824112a46ba1968217be011efd19d528330127.
2019-11-06 11:41:36 -08:00
chunhtai
a1824112a4 Issues/39832 reland (flutter/engine#13642)
* Reland "Added new lifecycle enum (#11913)"
2019-11-05 14:52:16 -08:00
chunhtai
2958712751 Revert "Added new lifecycle enum (#11913)" (flutter/engine#13632)
This reverts commit 583e1335bbf9842ff4dc349021c6c71e6141fffe.
2019-11-04 13:40:20 -08:00
chunhtai
583e1335bb Added new lifecycle enum (flutter/engine#11913) 2019-11-04 12:33:41 -08:00
gaaclarke
f2c70b20b4 Disabled GPUThreadMerger tests. (flutter/engine#13480)
* Disabled GPUThreadMerger tests.

* switched to a single gtest_filter argument
2019-11-01 15:20:45 -07:00