1. 13 10月, 2020 2 次提交
    • Y
      Revert "Migration to PlatformDispatcher and multi-window #20496" (#21792) · c2938d06
      Yuqian Li 提交于
      * Revert "Fix documentation build for window changes. (#21780)"
      
      This reverts commit 931a0468.
      
      * Revert "Migration to PlatformDispatcher and multi-window (#20496)"
      
      This reverts commit 85b0031f.
      c2938d06
    • Y
      Reland "Create root isolate asynchronously (#20142)" (#21747) · 190fd8eb
      Yuqian Li 提交于
      This reverts commit 5585ed99.
      
      Additionally, the following _flutter.runInView deadlock is fixed.
      
      Previously, a deadlock would occur when service protocol
      _flutter.runInView is used to restart the engine wihtout tearing down
      the shell: the shared mutex of the service protocol will be locked
      during the restart as it's in the middle of handling a service protocol
      message; if ServiceProtocol::AddHandler is also called during the
      restart, the deadlock happens as AddHandler also requires such lock.
      
      test/integration.shard/background_isolate_test.dart would fail
      without this fix.
      190fd8eb
  2. 10 10月, 2020 1 次提交
    • G
      Migration to PlatformDispatcher and multi-window (#20496) · 85b0031f
      Greg Spencer 提交于
      This is a PR for converting the dart:ui code in the engine to use a multi-window API. The goal here is to convert from the window singleton to an API that has the concept of multiple windows. Also, I'm matching up the new PlatformDispatcher class to talk directly to the PlatformConfiguration class in the engine. I'm not attempting to actually enable creating multiple windows here, just migrate to an API that has a concept of multiple windows. The multi-window API in this PR currently only ever creates one window.
      
      The design doc for this change is here.
      
      The major changes in this PR:
      
      Move the platfom-specific attributes out of Window, and into the new PlatformDispatcher class that holds all of the platform state, so that the platform code need only update the configuration on this class.
      Create FlutterView, FlutterWindow, and SingletonFlutterWindow classes to separate out the concepts of a view (of which there may be multiple in a window), a window (of which there may be multiple on a screen, and they host views), and a window where there is only ever expected to be one (this hosts the entire API of the former Window class, and will eventually be the type of the window singleton).
      Next step after this PR lands:
      
      Remove the Window class entirely (it is replaced by SingletonFlutterWindow). Some minor changes in the Framework are needed to switch to using SingletonFlutterWindow directly first.
      
      The Window class still exists in this PR, but will be removed as soon as the framework is converted to point to the SingletonFlutterWindow class instead. They share the same API, just have different names (Window is currently a subclass of SingletonFlutterWindow). The intention is that the Window name will be freed up to use as a widget class name in the framework for managing windows. The singleton called window will remain, and keep the same API it has now.
      85b0031f
  3. 09 10月, 2020 1 次提交
    • J
      Preserve specified AssetResolvers when performing a hot restart or updating... · 15c58740
      Jonah Williams 提交于
      Preserve specified AssetResolvers when performing a hot restart or updating the asset directory (#21611)
      
      Follow up from #21436 . That PR works for all embeddings except for Android, which creates a special JNI AssetResolver. Since the shell cannot recreate this resolver, update the logic to preserve existing resolvers instead.
      15c58740
  4. 08 10月, 2020 1 次提交
  5. 07 10月, 2020 1 次提交
  6. 06 10月, 2020 1 次提交
  7. 03 10月, 2020 1 次提交
  8. 29 9月, 2020 4 次提交
  9. 26 9月, 2020 2 次提交
    • K
      Embedder API Support for display settings (#21355) · 67fdd7ed
      Kaushik Iska 提交于
      Embedders can now notify shell during startup about the various displays and their corresponding settings.
      Adds a notion of Display update type which can later include chages to displays during runtime such as addition / removal / reconfiguration of displays.
      
      We also remove the responsibility of providing the refresh rate from `vsync_waiter` to `DisplayManager`.
      Rewires existing platform implementations of the said API to use `Shell::OnDisplayUpdate` to notify the display manager of the startup configuration.
      
      DisplayManager is also thread-safe to account for rasterizer and UI thread accesses.
      67fdd7ed
    • D
      Avoid sending a 0 DPR to framework (#21389) · aa8d5d4b
      Dan Field 提交于
      * Avoid sending a 0 DPR to framework
      
      * check width and height as well
      aa8d5d4b
  10. 19 9月, 2020 1 次提交
  11. 18 9月, 2020 2 次提交
  12. 12 9月, 2020 4 次提交
  13. 11 9月, 2020 1 次提交
    • C
      Copyright header hygiene improvements (#21089) · 36f7f3ca
      Chris Bracken 提交于
      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.
      36f7f3ca
  14. 10 9月, 2020 4 次提交
  15. 07 9月, 2020 1 次提交
    • C
      Enable lazy-async-stacks by-default in all modes (Take 3) (#20895) · 575a5194
      Clement Skau 提交于
      Lazy async stacks were already enabled by-default in AOT mode in [0] - which made the
      gen_snapshot invocations use "--lazy-async-stacks --no-causal-async-stacks".
      
      This change does the same with the engine defaults, which makes this be enabled
      by-default in JIT mode as well.
      
      See go/dart-10x-faster-async for more information.
      
      This is a re-land: A fix for what we believe to have caused the last revert has landed upstream in Dart in dart-lang/sdk@0004589
      
      [0] flutter/flutter@3478232
      575a5194
  16. 04 9月, 2020 5 次提交
  17. 03 9月, 2020 3 次提交
  18. 02 9月, 2020 3 次提交
  19. 01 9月, 2020 2 次提交