9292 Commits

Author SHA1 Message Date
Emmanuel Garcia
36c79c8a65 Change the directory to the scenario app (flutter/engine#17583) 2020-04-08 08:40:04 -07:00
skia-flutter-autoroll
5cf8142431 Roll src/third_party/skia 07b2bafbbc3c..f6860405e1bf (9 commits) (flutter/engine#17587) 2020-04-08 06:41:02 -07:00
skia-flutter-autoroll
512d1a24cc Roll src/third_party/skia b41a420ed8db..07b2bafbbc3c (13 commits) (flutter/engine#17579)
https://skia.googlesource.com/skia.git/+log/b41a420ed8db..07b2bafbbc3c

git log b41a420ed8db..07b2bafbbc3c --date=short --first-parent --format='%ad %ae %s'
2020-04-07 mtklein@google.com build conservative stack frame on x86-64
2020-04-07 mtklein@google.com add and test stack load/store
2020-04-07 brianosman@google.com Remove secret wireframe mode from drawVertices
2020-04-07 mtklein@google.com remove "debian9" ASAN jobs
2020-04-07 brianosman@google.com Remove gamma GM
2020-04-07 csmartdalton@google.com Implement support for indirect draws
2020-04-07 scroggo@google.com Upgrade libwebp used for testing to v1.1.0
2020-04-07 robertphillips@google.com Remove GrStrikeCache.h from all other header files
2020-04-07 mtklein@google.com backup plan for ASAN bots
2020-04-07 reed@google.com approximate sine for skvm
2020-04-07 mtklein@google.com remove SK_USE_SKVM_BLITTER
2020-04-07 jlavrova@google.com Mixed languages text crashes
2020-04-07 reed@google.com remove deprecated concat44 -- use concat

Created with:
  gclient setdep -r src/third_party/skia@07b2bafbbc3c

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/skia-flutter-autoroll
Please CC csmartdalton@google.com on the revert to ensure that a human
is aware of the problem.

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

Bug: None
Tbr: csmartdalton@google.com
2020-04-08 07:32:47 -04:00
liyuqian
5600aee512 Add comments to build_and_test_linux_unopt_debug (flutter/engine#17567)
Clarify that the test depends on the framework repo. It may fail if the
framework repo is broken, so the engine committer don't need to be in
panic.
2020-04-07 16:44:57 -07:00
Kaushik Iska
0460673759 Remove SceneDisplayLag trace event temporarily (flutter/engine#17571)
Working theory is that adding async events with begin times
in the past causes the timeline to skip some events.

See: https://github.com/flutter/flutter/issues/54095
2020-04-07 16:33:52 -07:00
skia-flutter-autoroll
c824fa3c9f Roll src/third_party/skia 3ef77ddf9ec4..b41a420ed8db (35 commits) (flutter/engine#17568) 2020-04-07 15:01:02 -07:00
LongCatIsLooong
d6d4f376a1 iOS UITextInput autocorrection prompt (flutter/engine#13959) 2020-04-07 14:45:59 -07:00
George Wright
c55f1eaed9 Roll fuchsia/sdk/core/linux-amd64 from 3yOjK... to VzWN4... (flutter/engine#17569) 2020-04-07 14:41:01 -07:00
stuartmorgan
b64faf3a69 Reland "Improve C++ plugin lifetime handling" (flutter/engine#17570)
Relands #17489 with a fix for the unit test flake.

The previous unit test relied on the new instance not being created at the same memory address, which isn't guaranteed.
2020-04-07 14:11:56 -07:00
gaaclarke
9513e65f95 Added "unrecognized-selector" errors to match g3 builds (flutter/engine#17566)
Added "unrecognized-selector" errors to match g3 builds, added
"overriding-method-mismatch" to catch a common error.
2020-04-07 13:28:42 -07:00
stuartmorgan
06e24a71ba Fix flutter_windows_unittests runtime dependency (flutter/engine#17524)
The transitive dependency on the embedder library brings in the right
runtime for the build mode, so directly depending on the JIT version
isn't necessary, and causes duplicate symbol issues in release builds.
2020-04-07 13:19:49 -07:00
Nurhan Turgut
c30986c146 [web] fix clipboard.getData (flutter/engine#17544)
* remove the fake reply for paste message. the clipboard.dart will reply with the content of the clipboard

* also remove the fake answer for copy
2020-04-07 11:34:33 -07:00
Ryoichi Izumita
fee9895d51 Fixed a bug that left a blank at the bottom of the screen (flutter/engine#17474)
I fixed a bug that left a blank at the bottom of the screen when the iPad's split keyboard was hidden.

I also had the same problem with this issue, so I fixed it.
iPad split keyboard cause a blank space problem

There is no function to change the space size at the bottom of the screen when the split keyboard is moved. This is because it's not clear what the keyboard should do when it's moved to the top of the screen.
2020-04-07 11:27:15 -07:00
Jason Simmons
33843702fe Add the Android SDK lambda stub library to the classpath (flutter/engine#17508)
Previously the build scripts obtained the lambda support classes from rt.jar,
which is no longer provided by recent versions of the JDK.
2020-04-07 11:24:52 -07:00
chunhtai
2a55af809a always forward move event (flutter/engine#17541)
flutter/flutter#54022

The original issue is the _MotionEventsDispatcher depends on all down pointers to send out their own move events. If the third pointer has the movement of zero, it will get filter out by the PointerDataPacketConverter. This result with only two pointer move events been sent to RenderAndroidView, and they both get ignored because it is waiting for the third one.

This pr fixes it by always forward the move event
2020-04-07 11:24:11 -07:00
Chris Bracken
2a97bc1e16 Revert "Added errors to match g3 builds and simple errors (#17536)" (flutter/engine#17564)
Test failure:

    [ RUN      ] FlutterStringCodec.CanEncodeAndDecodeNil
    2020-04-07 10:21:25.091 flutter_channels_unittests[26965:163315] *** Assertion failure in -[FlutterStringCodec encode:], ../../flutter/shell/platform/darwin/common/framework/Source/FlutterCodecs.mm:36
    2020-04-07 10:21:25.118 flutter_channels_unittests[26965:163315] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: ''
    *** First throw call stack:
    (
    	0   CoreFoundation                      0x00007fff2ccabcf9 __exceptionPreprocess + 256
    	1   libobjc.A.dylib                     0x00007fff5785ea17 objc_exception_throw + 48
    	2   CoreFoundation                      0x00007fff2ccc6a16 +[NSException raise:format:arguments:] + 98
    	3   Foundation                          0x00007fff2ef58e11 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 194
    	4   flutter_channels_unittests          0x0000000105f1cce2 -[FlutterStringCodec encode:] + 290
    	5   flutter_channels_unittests          0x0000000105f01bbb _ZN45FlutterStringCodec_CanEncodeAndDecodeNil_Test8TestBodyEv + 107
    	6   flutter_channels_unittests          0x00000001081d1732 _ZN7testing8internal38HandleSehExceptionsInMethodIfSupportedINS_4TestEvEET0_PT_MS4_FS3_vEPKc + 146
    	7   flutter_channels_unittests          0x00000001081a76b0 _ZN7testing8internal35HandleExceptionsInMethodIfSupportedINS_4TestEvEET0_PT_MS4_FS3_vEPKc + 128
    	8   flutter_channels_unittests          0x00000001081a75c1 _ZN7testing4Test3RunEv + 209
    	9   flutter_channels_unittests          0x00000001081a8415 _ZN7testing8TestInfo3RunEv + 229
    	10  flutter_channels_unittests          0x00000001081a95aa _ZN7testing9TestSuite3RunEv + 266
    	11  flutter_channels_unittests          0x00000001081b4e43 _ZN7testing8internal12UnitTestImpl11RunAllTestsEv + 995
    	12  flutter_channels_unittests          0x00000001081d8572 _ZN7testing8internal38HandleSehExceptionsInMethodIfSupportedINS0_12UnitTestImplEbEET0_PT_MS4_FS3_vEPKc + 146
    	13  flutter_channels_unittests          0x00000001081b49b3 _ZN7testing8internal35HandleExceptionsInMethodIfSupportedINS0_12UnitTestImplEbEET0_PT_MS4_FS3_vEPKc + 131
    	14  flutter_channels_unittests          0x00000001081b4835 _ZN7testing8UnitTest3RunEv + 197
    	15  flutter_channels_unittests          0x0000000105f22e73 _Z13RUN_ALL_TESTSv + 35
    	16  flutter_channels_unittests          0x0000000105f22d79 main + 553
    	17  libdyld.dylib                       0x00007fff5908c3d5 start + 1
    )
    libc++abi.dylib: terminating with uncaught exception of type NSException
    [ERROR:flutter/fml/backtrace.cc(110)] Caught signal SIGABRT during program execution.
    Frame 0: 0x7fff591316a6 abort
    Frame 1: 0x7fff560ea641 __cxa_bad_cast
    Frame 2: 0x7fff560ea7df default_unexpected_handler()�
    Frame 3: 0x7fff57860ee3 _objc_terminate()�
    Frame 4: 0x7fff560f619e std::__terminate(void (*)())�
    Frame 5: 0x7fff560f5f86 __cxa_get_exception_ptr
    Frame 6: 0x7fff560e8f99 __cxa_get_globals
    Frame 7: 0x7fff5785eb51 objc_exception_throw
    Frame 8: 0x7fff2ccc6a16 +[NSException raise:format:arguments:]
    Frame 9: 0x7fff2ef58e11 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:]
    Frame 10: 0x105f1cce2 -[FlutterStringCodec encode:]
    Frame 11: 0x105f01bbb FlutterStringCodec_CanEncodeAndDecodeNil_Test::TestBody()�
    Frame 12: 0x1081d1732 void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*)�
    Frame 13: 0x1081a76b0 void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*)�
    Frame 14: 0x1081a75c1 testing::Test::Run()�
    Frame 15: 0x1081a8415 testing::TestInfo::Run()�
    Frame 16: 0x1081a95aa testing::TestSuite::Run()�
    Frame 17: 0x1081b4e43 testing::internal::UnitTestImpl::RunAllTests()�
    Frame 18: 0x1081d8572 bool testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*)�
    Frame 19: 0x1081b49b3 bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*)�
    Frame 20: 0x1081b4835 testing::UnitTest::Run()�
    Frame 21: 0x105f22e73 RUN_ALL_TESTS()�
    Frame 22: 0x105f22d79 main
    Frame 23: 0x7fff5908c3d5 start

This reverts commit 46f82a3d938a621d2cae8591d6f7566e01f118e1.
2020-04-07 10:32:38 -07:00
Chris Bracken
4f108b7be1 Revert "Improve C++ plugin lifetime handling (#17489)" (flutter/engine#17563)
Seems to have triggered flaky failures on the Windows bot since landing.
Example failure:

    [ RUN      ] PluginRegistrarTest.ManagerRemovesOnDestruction
    c:\b\s\w\ir\cache\builder\src\flutter\shell\platform\common\cpp\client_wrapper\plugin_registrar_unittests.cc(149): error: Expected: (manager->GetRegistrar<PluginRegistrar>(dummy_registrar_handle)) != (first_wrapper), actual: 000002400A90E3D0 vs 000002400A90E3D0

This reverts commit 478a7855943d81a58dd9e9037fb338d3a18bb294.
2020-04-07 10:22:55 -07:00
gaaclarke
46f82a3d93 Added errors to match g3 builds and simple errors (flutter/engine#17536)
"unrecognized-selector" and "overriding-method-mismatch" added as errors.
2020-04-07 10:03:49 -07:00
skia-flutter-autoroll
78265d74e7 Roll src/third_party/skia 04513752fd6e..3ef77ddf9ec4 (3 commits) (flutter/engine#17530) 2020-04-06 15:11:03 -07:00
Amir Hardon
97d47bf1b6 Fix AlertDialogs built by platform views (flutter/engine#17511) 2020-04-06 15:06:07 -07:00
Mouad Debbar
a5bc2eceb5 [web] Detect when the mouseup occurs outside of window (flutter/engine#17495) 2020-04-06 15:06:03 -07:00
gaaclarke
b3c7bb7ae9 Added missing declaration (only showed up in g3 builds). (flutter/engine#17535) 2020-04-06 15:02:47 -07:00
Kaushik Iska
de296a6f37 Revert "[tools][fuchsia] Do not tar debug symbol CIPD uploads (#17506)" (flutter/engine#17537)
This reverts commit 25f1f346f2e85e8bb33fbd9f4cd7d116767db143.
2020-04-06 14:15:40 -07:00
gaaclarke
2190b0c3c0 Fixed nullability in plugin header and overridden type mismatch error. (flutter/engine#17532) 2020-04-06 13:23:00 -07:00
Joshua Seaton
25f1f346f2 [tools][fuchsia] Do not tar debug symbol CIPD uploads (flutter/engine#17506)
Fuchsia is the main consumer of these CIPD packages and - to simplify
its infrastructure - it is migrating its SDK partners over to producing
a CIPD package containing a flat .build-id directory.

This change also updates the CIPD package so that the .build-id
directory is placed at the root.

Bug: fxbug.dev/41443
2020-04-06 10:04:54 -07:00
stuartmorgan
478a785594 Improve C++ plugin lifetime handling (flutter/engine#17489)
This makes two changes:
- Adds a way to register a callback for when a FlutterDesktopPluginRegistrarRef is destroyed, and implements the logic to call it in the Windows and Linux embeddings.
- Adds a class to the C++ wrapper that handles making a singleton owning PluginRegistrar wrappers, and destroying them when the underlying reference goes away, to avoid needing that boilerplate code in every plugin's source.

Fixes https://github.com/flutter/flutter/issues/53496
2020-04-06 09:55:42 -07:00
skia-flutter-autoroll
fd58075c0c Roll src/third_party/skia cc8a76f3c763..04513752fd6e (22 commits) (flutter/engine#17529) 2020-04-06 09:11:02 -07:00
skia-flutter-autoroll
435997a84a Roll fuchsia/sdk/core/linux-amd64 from Ezm2f... to 3yOjK... (flutter/engine#17525) 2020-04-06 00:16:01 -07:00
skia-flutter-autoroll
e64079e7f9 Roll fuchsia/sdk/core/linux-amd64 from hUO_b... to Ezm2f... (flutter/engine#17519) 2020-04-05 04:06:02 -07:00
skia-flutter-autoroll
d691792565 Roll fuchsia/sdk/core/linux-amd64 from TWx2R... to hUO_b... (flutter/engine#17514) 2020-04-04 04:46:01 -07:00
gaaclarke
dd3f510913 refactor: split up accessibility bridge and semantics object (flutter/engine#17507) 2020-04-03 16:54:33 -07:00
skia-flutter-autoroll
296cbbbd5a Roll src/third_party/skia e70e0c055f56..cc8a76f3c763 (23 commits) (flutter/engine#17504) 2020-04-03 15:51:02 -07:00
gaaclarke
cfbd7272da Started clearing out the parent of orphaned semantic objects. (flutter/engine#17499) 2020-04-03 14:35:48 -07:00
xster
c81eeda828 Small updates to objcdocs (flutter/engine#17151) 2020-04-03 13:03:06 -07:00
Jason Simmons
02720fbca8 Fix include paths of fml/time headers in the shell and rasterizer (flutter/engine#17502) 2020-04-03 12:33:54 -07:00
skia-flutter-autoroll
fb3c662a37 Roll fuchsia/sdk/core/linux-amd64 from -jFTb... to TWx2R... (flutter/engine#17498) 2020-04-03 12:01:02 -07:00
skia-flutter-autoroll
369c1bc159 Roll src/third_party/skia 8efbbbc0d1d4..e70e0c055f56 (1 commits) (flutter/engine#17496) 2020-04-03 11:51:05 -07:00
Chris Bracken
adb73da22f Use const refs in for loops where reasonable (flutter/engine#17484)
This patch optimizes C++11 range-based for loops where the variable is
copied in each iteration but it would suffice to obtain it by const
reference. This is only applied to loop variables of types that are
expensive to copy which means they are not trivially copyable or have a
non-trivial copy constructor or destructor.

To ensure that it is safe to replace the copy with a const reference
only the following cases are modified:
  * The loop variable is const-qualified.
  * The loop variable is not const, but only const methods or operators
    are invoked on it, or it is used as const reference or value argument
    in constructors or function calls.

This is an application of the internal performance-for-range-copy
clang-tidy analysis.
2020-04-03 11:44:35 -07:00
George Wright
69163aaa96 Revert "[tools][fuchsia] Do not tar debug symbol CIPD uploads (#17275)"
This reverts commit 3369570b18f926f73ecd94a1365d9996afcb6eca.
2020-04-03 10:56:08 -07:00
Joshua Seaton
3369570b18 [tools][fuchsia] Do not tar debug symbol CIPD uploads (flutter/engine#17275)
Fuchsia is the main consumer of these CIPD packages and - to simplify
its infrastructure - it is migrating its SDK partners over to producing
a CIPD package containing a flat .build-id directory.

This change also updates the CIPD package so that the .build-id
directory is placed at the root.

Bug: fxbug.dev/41443
2020-04-02 18:44:09 -07:00
skia-flutter-autoroll
fb859e0270 Roll src/third_party/skia 8afde5f39508..8efbbbc0d1d4 (14 commits) (flutter/engine#17491) 2020-04-02 18:26:02 -07:00
skia-flutter-autoroll
1bda40865c Roll fuchsia/sdk/core/linux-amd64 from v61zg... to -jFTb... (flutter/engine#17490) 2020-04-02 18:21:04 -07:00
Jason Simmons
3c089996dc Disconnect from platform views and virtual displays before detaching from the engine (flutter/engine#17379) 2020-04-02 18:16:05 -07:00
Kaushik Iska
ce0ec9042f [pipeline] Add trace event for lag between target and display times (flutter/engine#17384)
This change also adds TimeRecorder which records time at the start
of each frame to capture the latest vsync target display time and
wires it in to the rasterizer to add trace events when there is a lag.
2020-04-02 17:15:45 -07:00
Dan Field
f1a58638ad Fix bad texture view config (flutter/engine#17486) 2020-04-02 15:06:03 -07:00
stuartmorgan
7b222c8310 Remove JSON codec from C++ client wrapper (flutter/engine#17312)
The JSON codec is awkward to use in the wrapper (since the client has to build and link one of the JSON libraries to do so). Since it would be very cumbersome to wrap in a C API, and there's essentially no reason to use it instead of the standard codec, this removes it from the wrapper entirely.

Since some system channels (internal to the engine) still use it, it's moved into common/cpp instead of being eliminated entirely. Internally we always use RapidJSON though, so the jsoncpp implementation is removed. Also adds some unit test coverage, since there wasn't any.

Fixes #30669
2020-04-02 14:57:46 -07:00
Dan Field
904a84fee3 Roll to clang11, mark 4 (flutter/engine#17483)
* "Reland Clang 11, roll buildroot to 1bc40a5f916adb93d87e2a2230a0ec43db876c1c, take 4 (#17467)" (#17482)"

This reverts commit d7bbf2e70c8cb86823f1ec7a310d6ab0b9a610db.

* format code

* Roll buildroot to 3a27de1c5bb0f50be7d3efe3e00de4f6068c9f30
2020-04-02 13:04:49 -07:00
Chinmay Garde
165af3205c Always cache SkSL when using the Metal backend. (flutter/engine#17468)
There is no ability to compile shaders online and cache those binaries when
using the Metal backend. SkSL caching must always be used.
2020-04-02 13:00:29 -07:00
Jonah Williams
e6e8170ea8 fix typos in switch descriptions (flutter/engine#17475) 2020-04-02 11:21:04 -07:00
skia-flutter-autoroll
67ba02a348 Roll src/third_party/skia 8ce842d38d0b..8afde5f39508 (9 commits) (flutter/engine#17480) 2020-04-02 10:51:02 -07:00