1. 29 4月, 2021 1 次提交
  2. 08 1月, 2021 1 次提交
  3. 29 12月, 2020 1 次提交
  4. 05 11月, 2020 1 次提交
  5. 30 10月, 2020 1 次提交
  6. 23 10月, 2020 1 次提交
  7. 17 10月, 2020 2 次提交
    • R
      9b752790
    • C
      Enable loading snapshots with sound null safety enabled. (#21820) · 5bd7260a
      Chinmay Garde 提交于
      Snapshots compiled with sound null-safety enabled require changes to the way in
      which isolates are launched. Specifically, the `Dart_IsolateFlags::null_safety`
      field needs to be known upfront. The value of this field can only be determined
      once the kernel snapshot is available. This poses a problem in the engine
      because the engine used to launch the isolate at shell initialization and only
      need the kernel mappings later at isolate launch (when transitioning the root
      isolate to the `DartIsolate::Phase::Running` phase). This patch delays launch of
      the isolate on the UI task runner till a kernel mapping is available. The side
      effects of this delay (callers no longer having access to the non-running
      isolate handle) have been addressed in this patch. The DartIsolate API has also
      been amended to hide the method that could return a non-running isolate to the
      caller.  Instead, it has been replaced with a method that requires a valid
      isolate configuration that returns a running root isolate. The isolate will be
      launched by asking the isolate configuration for its null-safety
      characteristics.
      
      A side effect of enabling null-safety is that Dart APIs that work with legacy
      types will now terminate the process if used with an isolate that has sound
      null-safety enabled. These APIs may no longer be used in the engine. This
      primarily affects the Dart Convertors in Tonic that convert certain C++ objects
      into the Dart counterparts. All known Dart Converters have been updated to
      convert C++ objects to non-nullable Dart types inferred using type traits of the
      corresponding C++ object. The few spots in the engine that used the old Dart
      APIs directly have been manually updated. To ensure that no usage of the legacy
      APIs remain in the engine (as these would cause runtime process terminations),
      the legacy APIs were prefixed with the `DART_LEGACY_API` macro and the macro
      defined to `[[deprecated]]` in all engine translation units. While the engine
      now primarily works with non-nullable Dart types, callers can still use
      `Dart_TypeToNonNullableType` to acquire nullable types for use directly or with
      Tonic. One use case that is not addressed with the Tonic Dart Convertors is the
      creation of non-nullable lists of nullable types. This hasn’t come up so far in
      the engine.
      
      A minor related change is reworking tonic to define a single library target.
      This allows the various tonic subsystems to depend on one another. Primarily,
      this is used to make the Dart convertors use the logging utilities. This now
      allows errors to be more descriptive as the presence of error handles is caught
      (and logged) earlier.
      
      Fixes https://github.com/flutter/flutter/issues/59879
      5bd7260a
  8. 16 10月, 2020 1 次提交
  9. 29 8月, 2020 1 次提交
  10. 23 8月, 2020 1 次提交
  11. 15 8月, 2020 1 次提交
  12. 11 8月, 2020 1 次提交
  13. 07 8月, 2020 1 次提交
  14. 04 8月, 2020 1 次提交
    • D
      fuchsia: Remove dead code / break dependencies (#19396) · 12a37478
      David Worsham 提交于
      The fuchsia code around metrics and sizing was just sending this
      information through a side-channel, when the engine already had the
      information available. So, delete all of it to make future CLs simpler.
      
      Additionally, the SceneUpdateContext has many unneccesary dependencies
      re: metrics and PaintTasks. Break those to make future CLs simpler.
      
      Tested: Ran all unittests and ran workstation on Fuchsia
      BUG: 53062, 53063
      12a37478
  15. 26 6月, 2020 1 次提交
  16. 27 5月, 2020 3 次提交
  17. 01 5月, 2020 1 次提交
  18. 31 1月, 2020 1 次提交
  19. 25 1月, 2020 1 次提交
  20. 24 1月, 2020 1 次提交
  21. 23 1月, 2020 1 次提交
  22. 08 1月, 2020 1 次提交
  23. 21 12月, 2019 1 次提交
  24. 24 10月, 2019 1 次提交
    • F
      Wires the locale provided by Fuchsia. (#13045) · 400e3b00
      Filip Filmar 提交于
      The FIDL service `fuchsia.intl.PropertyProvider` is a service that
      the flutter runner can use to obtain information on system preferred
      locales.
      
      This change sends a platform message "setLocale" on the channel
      "flutter/localization", based on the values provided by the above
      mentioned FIDL service.
      
      Credit: most of this was initially written by @kpozin; I ported it
      to out-of-tree flutter engine.
      
      Tested:
      
      1. Compile and publish the unit tests package as shown in
         the script below.
      2. In a Fuchsia repository (pointed to by `$FUCHSIA_DIR`), run
         `fx serve`
      3. `fx shell run fuchsia-pkg://fuchsia.com/flutter_runner_tests#meta/flutter_runner_tests.cmx`
      
      The script used to update the unit tests.
      
      ```bash
      
      set -x
      
      FLUTTER_ENGINE_DIR="${FLUTTER_ENGINE_DIR:-$HOME/fx/flutter/engine/src}"
      readonly OUT_DIR="${FLUTTER_ENGINE_DIR}/out"
      
      (
        cd ${FLUTTER_ENGINE_DIR}
        ./flutter/tools/gn --fuchsia --fuchsia-cpu x64 --unoptimized
        ninja -j 100 -C "${OUT_DIR}/fuchsia_debug_unopt_x64"
        cp "${OUT_DIR}/compile_commands.json" "${FLUTTER_ENGINE_DIR}"
      
        echo "Publishing the tests package"
        "${FLUTTER_ENGINE_DIR}/fuchsia/sdk/linux/tools/pm" publish \
          -a -r $FUCHSIA_DIR/out/release/amber-files \
          -f "${FLUTTER_ENGINE_DIR}/out/fuchsia_debug_unopt_x64/flutter_runner_tests-0.far"
      )
      ```
      400e3b00
  25. 19 9月, 2019 1 次提交
    • K
      [flutter_runner] Remove usages of shared snapshots from CC sources (#12343) · e0a24d63
      Kaushik Iska 提交于
      Build rules still reference creating share snapshot data and instructions. This makes the engine to always pass them as empty to the dart vm. To be followed up with a change to alter the build rules to stop referencing the shared snapshots.
      
      This is not being used currently and the fact that the runner will be built outside of the flutter tree means that the apps will not have much to gain via shared snapshots. The rationale behind this change is to partially make migrating the runner out of topaz tree easier.
      
      Change-Id: Ibc4dd6a298d65082416af753522f5a17c88a750a
      e0a24d63
  26. 11 9月, 2019 1 次提交
  27. 29 8月, 2019 1 次提交
    • K
      [flutter_runner] Port Expose ViewBound Wireframe Functionality (#11635) · 03318327
      Kaushik Iska 提交于
      Expose scenic's ability to toggle wireframe debug
      rendering of view bounds in flutter_runner. This is done
      by registering a new function on the platform_views channel
      with the PlatformView.
      
      Note: Unittests have not been enabled, will enable once we
      have sufficient infra.
      
      SCN-1351 #done
      
      Change-Id: Id4c8ef65cc39a967087d7fa6c9f595da8cfe5f01
      03318327
  28. 13 5月, 2019 1 次提交
  29. 08 5月, 2019 1 次提交