10998 Commits

Author SHA1 Message Date
skia-flutter-autoroll
27dd510443 Roll Skia from 582c5a9a84ac to 186866c46179 (1 revision) (flutter/engine#21133) 2020-09-12 09:37:02 -07:00
skia-flutter-autoroll
e82a56ab9b Roll Fuchsia Linux SDK from f3YqG3OdI... to hO-ki0WJb... (flutter/engine#21132) 2020-09-12 04:27:02 -07:00
Chris Bracken
2586db3b22 Clean up C++ includes (flutter/engine#21127)
Cleans up header order/grouping for consistency: associated header, C/C++ system/standard library headers, library headers, platform-specific #includes.

Adds <cstring> where strlen, memcpy are being used: there are a bunch of places we use them transitively.

Applies linter-required cleanups. Disables linter on one file due to included RapidJson header. See https://github.com/flutter/flutter/issues/65676

This patch does not cover flutter/shell/platform/darwin. There's a separate, slightly more intensive cleanup for those in progress.
2020-09-11 21:18:35 -07:00
skia-flutter-autoroll
a2635619b8 Roll Skia from 9eb848ae8218 to 582c5a9a84ac (1 revision) (flutter/engine#21124) 2020-09-11 18:02:01 -07:00
Emmanuel Garcia
1ec891cb52 Fix comment indentation (flutter/engine#21114) 2020-09-11 17:50:26 -07:00
Chris Bracken
d03692449b Prefer C++ standard headers to their C counterpart (flutter/engine#21091)
We currently use a mix of C standard includes (e.g. limits.h) and their
C++ variants (e.g. climits). This migrates to a consistent style for all
cases where the C++ variants are acceptable, but leaves the C
equivalents in place where they are required, such as in the embedder
API and other headers that may be used from C.
2020-09-11 17:10:00 -07:00
Emmanuel Garcia
8a317ebabc Add a new raster status kSkipAndRetry frame (flutter/engine#21059) 2020-09-11 16:29:11 -07:00
Jason Simmons
c3a37bec80 Check for a valid SkSL cache directory before calling VisitFiles (flutter/engine#21118)
The directory may be invalid when running shell_unittests because
some tests call SetCacheDirectoryPath and then delete the directory.
Later tests that try to use that cache base path will be unable to
open the directory.
2020-09-11 16:23:25 -07:00
Chris Bracken
eaa458dd36 Disable iOS application lifetime Scenario tests (flutter/engine#21125)
This speculatively disables the ApplicationLifecycle Scenarios iOS tests
which continue to fail after being re-enabled in flutter/engine#21087.

Related P0 issue: https://github.com/flutter/flutter/issues/61620
2020-09-11 16:12:22 -07:00
skia-flutter-autoroll
05bc0c6cd2 Roll Skia from 6518d77a2200 to 9eb848ae8218 (20 revisions) (flutter/engine#21122) 2020-09-11 15:10:01 -07:00
skia-flutter-autoroll
dc2f43df04 Roll Fuchsia Linux SDK from XIejclW2X... to f3YqG3OdI... (flutter/engine#21121) 2020-09-11 15:05:02 -07:00
Sam Rawlins
b72dca37f3 Fix erroneous dartdoc @tool directive. (flutter/engine#21109) 2020-09-11 12:00:02 -07:00
Chris Bracken
7acd2b407c Fix linter errors in mock_engine (flutter/engine#21102)
Make a single-param ctor explicit in order to prevent surprising
implicit conversions.

Add a check for zero message-size and don't malloc/memcpy the incoming
message in those cases.

Add braces where they were missing.
2020-09-11 10:27:00 -07:00
xster
a0944e63b4 re-enable scenario tests on iOS (flutter/engine#21088) 2020-09-11 09:21:37 -07:00
Chris Bracken
9ff7d7ca44 Copyright header hygiene improvements (flutter/engine#21089)
Add copyright headers in a few files where they were missing.

Trim trailing blank comment line where present, for consistency with
other engine code.

Use the standard libtxt copyright header in one file where it differed
(extra (C) and comma compared to other files in libtxt).

This also amends tools/const_finder/test/const_finder_test.dart to look
for a const an additional four lines down to account for the copyright
header added to the test fixture.
2020-09-11 08:55:37 -07:00
skia-flutter-autoroll
d4cab475f2 Roll Skia from bbe69951b416 to 6518d77a2200 (1 revision) (flutter/engine#21096) 2020-09-11 08:10:02 -07:00
skia-flutter-autoroll
31834626c2 Roll Fuchsia Linux SDK from l8baHga4c... to XIejclW2X... (flutter/engine#21086) 2020-09-11 00:25:01 -07:00
skia-flutter-autoroll
16f7e116e6 Roll Skia from 9d6f955f52e9 to bbe69951b416 (4 revisions) (flutter/engine#21090) 2020-09-11 00:05:02 -07:00
Chris Bracken
c117a411ae Re-enable (most) iOS Scenarios tests (flutter/engine#21087)
This re-enables the iOS Scenarios tests which have been flaky in the
last couple days.

Disabling two tests where we've seen the flakes:
* AppLifecycleTests testFlutterViewControllerDetachingSendsApplicationLifecycle
* FlutterViewControllerInitialRouteTest testSettingInitialRoute

This reverts commit 84995bd516d94a3a7e52e752ad666a8b22068498.
2020-09-10 22:57:56 -07:00
skia-flutter-autoroll
5b60d0d508 Roll Skia from 0b6bf1c9668e to 9d6f955f52e9 (8 revisions) (flutter/engine#21085) 2020-09-10 22:45:02 -07:00
stuartmorgan
087ad9a390 Minor windows.h cleanup (flutter/engine#21082)
- Standardize on lowercase for windows.h
- Don't define NOMINMAX before including windows.h in (some) public
  wrapper headers, since it causes a warning when combined with setting
  NOMINMAX at the build level, which is the more robust way to avoid
  issues with min/max and windows.h
2020-09-10 21:11:07 -07:00
stuartmorgan
1cb8585fa7 Remove deprecated methods from FlutterViewController (flutter/engine#21081)
The template now uses the FlutterEngine versions.
2020-09-10 21:10:28 -07:00
stuartmorgan
91c34dca2e Clean up deprecated EncodableValue code (flutter/engine#20981)
Removes the older pointer-based versions of APIs taking EncodableValues for which there are now reference-based versions.
2020-09-10 21:08:52 -07:00
xster
7f02d137c3 add back a line to build host for scenario tests (flutter/engine#21076) 2020-09-10 21:05:03 -07:00
skia-flutter-autoroll
0a9b5e19ad Roll Skia from fb5e0ebef07c to 0b6bf1c9668e (2 revisions) (flutter/engine#21074)
https://skia.googlesource.com/skia.git/+log/fb5e0ebef07c..0b6bf1c9668e

2020-09-10 skia-autoroll@skia-public.iam.gserviceaccount.com Roll dawn from 0a1061da0c7f to 87f25134a8c1 (7 revisions)
2020-09-10 bsalomon@google.com Revert "Temporary hack to force text texture index varying to be float."

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 reed@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/+doc/master/autoroll/README.md
2020-09-10 21:03:49 -07:00
chunhtai
da3c08e3ba Implement browser history class for router widget (flutter/engine#20794) 2020-09-10 21:00:02 -07:00
Chris Bracken
84995bd516 Disable iOS ScenariosTests suite (flutter/engine#21080)
This disables the macOS Scenarios app tests until a fix for the current
flakiness is found.

This also reverts commit 9ef075582e0dcaa4df990338b931219465ffcbce where
one test was previously disabled. However, another started failing soon
after, so instead we disable the whole suite here.
2020-09-10 19:50:03 -07:00
Chris Bracken
9ef075582e Disable a flaky Scenarios test (flutter/engine#21075)
This disables the macOS Scenarios app test
testFlutterViewControllerDetachingSendsApplicationLifecycle
until a fix for the flakiness is found.

Related issue: https://github.com/flutter/flutter/issues/61620
2020-09-10 13:21:17 -07:00
skia-flutter-autoroll
e40f3637e0 Roll Skia from 3d41d509a6a9 to fb5e0ebef07c (1 revision) (flutter/engine#21072) 2020-09-10 09:25:03 -07:00
Damian Wrobel
d71cece456 Add missing <cstring> header (flutter/engine#21069)
Fixes the following compilation errors:

../../flutter/shell/platform/linux/fl_value.cc:267:3: error: use of undeclared identifier 'memcpy'
  memcpy(self->values, data, sizeof(uint8_t) * data_length);
  ^
../../flutter/shell/platform/linux/fl_value.cc:284:3: error: use of undeclared identifier 'memcpy'
  memcpy(self->values, data, sizeof(int32_t) * data_length);
  ^
../../flutter/shell/platform/linux/fl_value.cc:294:3: error: use of undeclared identifier 'memcpy'
  memcpy(self->values, data, sizeof(int64_t) * data_length);
  ^
../../flutter/shell/platform/linux/fl_value.cc:304:3: error: use of undeclared identifier 'memcpy'
  memcpy(self->values, data, sizeof(double) * data_length);
  ^

../../flutter/shell/platform/linux/fl_string_codec.cc:29:28: error: use of undeclared identifier 'strlen'
  return g_bytes_new(text, strlen(text));
                           ^

../../flutter/shell/platform/linux/fl_standard_message_codec.cc:512:23: error: use of undeclared identifier 'strlen'
      size_t length = strlen(text);
                      ^

Signed-off-by: Damian Wrobel <dwrobel@ertelnet.rybnik.pl>
2020-09-10 09:24:54 -07:00
skia-flutter-autoroll
fbfe010380 Roll Fuchsia Linux SDK from 9kiAbu3bd... to l8baHga4c... (flutter/engine#21071) 2020-09-10 06:30:01 -07:00
skia-flutter-autoroll
784cf5ca48 Roll Skia from 917a2d741e92 to 3d41d509a6a9 (2 revisions) (flutter/engine#21067) 2020-09-10 03:25:02 -07:00
skia-flutter-autoroll
01c3376680 Roll Skia from 5eea6aea02d9 to 917a2d741e92 (1 revision) (flutter/engine#21065) 2020-09-10 02:05:01 -07:00
Sebastian Roth
0aff38842a Annotate valuePublishedByPlugin with nullable (flutter/engine#19267) 2020-09-09 19:45:02 -07:00
David Worsham
916cee368c fuchsia: Compile disabled RasterThreadMerger code (flutter/engine#20984) 2020-09-09 18:40:01 -07:00
Alexander Brusher
b359710d3d Adds increment/decrement actions to fuchsia accessibility bridge. (flutter/engine#21049) 2020-09-09 18:34:38 -07:00
xster
8e3ed9ca9f Delete unused iOS test scripts after LUCI change (flutter/engine#18712)
This deletes old LUCI build scripts that have been unused since
https://flutter-review.googlesource.com/c/recipes/+/3160
2020-09-09 18:22:45 -07:00
Harry Terkelsen
21c8ce0b47 Remove the type parameter from SkObjectFinalizationRegistry. (flutter/engine#21061) 2020-09-09 17:20:02 -07:00
stuartmorgan
dda761af69 Rename Registrar to PluginRegistrar in Win/GLFW C API (flutter/engine#21058) 2020-09-09 17:15:03 -07:00
Yurii Nakonechnyi
f034712531 Clarify that run.sh builds and runs the GLFW example 2020-09-09 17:11:20 -07:00
skia-flutter-autoroll
e2d2a98945 Roll Fuchsia Linux SDK from eBus_y4DN... to 9kiAbu3bd... (flutter/engine#21056) 2020-09-09 17:10:02 -07:00
kele86838437
260a850e93 Update Androidx import (flutter/engine#19059) 2020-09-09 16:10:03 -07:00
skia-flutter-autoroll
13c7980808 Roll Skia from 215d2b0fa42d to 5eea6aea02d9 (11 revisions) (flutter/engine#21055) 2020-09-09 15:40:01 -07:00
chunhtai
803b1b09cf Fixed ios layout change to not refocus semantics object if the focus … (flutter/engine#21029)
* Fixed ios layout change to not refocus semantics object if the focus is outside of flutter

* update

* addressing comments
2020-09-09 15:39:21 -07:00
chenjianguang
38f9a5955e Fix usage of WeakPtr valid check (flutter/engine#20106) 2020-09-09 15:34:24 -07:00
Yuqian Li
9aba102005 Open a fresh dir during LoadSkSLs (flutter/engine#21050)
Fixes https://github.com/flutter/flutter/issues/65258

The following devicelab tests should pass after this patch:

- flutter_gallery_sksl_warmup__transition_perf_e2e_ios32
- flutter_gallery_sksl_warmup_ios32__transition_perf
2020-09-09 15:33:33 -07:00
linxuebin
538ae021ea Increase thread priority before engine init (flutter/engine#20922)
We get huge ANRs in not pure flutter app.
We found that 0.15% of the engine initialization took more than 10 seconds, every 10 million starts.
2020-09-09 14:07:34 -07:00
Chris Bracken
6e37e9cd8f Check for dart2js on felt startup (flutter/engine#21046)
This adds a check for the presence of dart2js in the engine build.

Felt relies on an engine build with `--full-dart-sdk` set. Previously,
we checked for the presence of pub, but not for the presence of
web-specific tooling such as dart2js that felt relies on. Pub is built
as part of the default Dart SDK build when `--full-dart-sdk` is not set,
so its presence is insufficient to prove that other required tooling is
present.

Without this check, we get the following error on run:

    Unhandled exception:
    ProcessException: No such file or directory
      Command: /Users/cbracken/src/flutter/engine/src/out/host_debug_unopt/dart-sdk/bin/dart2js --no-minify --disable-inlining --enable-asserts --enable-experiment=non-nullable --no-sound-null-safety -O2 -o test/paragraph_builder_test.dart.browser_test.dart.js test/paragraph_builder_test.dart
2020-09-09 14:04:52 -07:00
skia-flutter-autoroll
f0a53b024e Roll Skia from 81606b5d9774 to 215d2b0fa42d (4 revisions) (flutter/engine#21045) 2020-09-09 11:40:01 -07:00
Zachary Anderson
5ef8d060bc Revert "Enable lazy-async-stacks by-default in all modes (Take 3) (#20895)" (flutter/engine#21043)
This reverts commit 4200d23617a13ae4e477483ad43493dd36e4d00b.
2020-09-09 09:25:17 -07:00