1. 13 10月, 2020 1 次提交
  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. 24 9月, 2020 2 次提交
    • D
      Create an ImageHandle wrapper (#21057) · b49de93b
      Dan Field 提交于
      Allows for reference counting of images before disposal.
      
      This will allow multiple callers to hold a reference to an image and dispose of their reference without disposing the underlying image until all handles have been disposed.
      
      This will be used by the framework to help resolve some of the kludge I was trying to introduce in flutter/flutter#64582
      b49de93b
    • R
      Update docs specifying addPlatformView offset param is not used (#21331) · 515f3398
      Richard Cai 提交于
      for Android and iOS and remove offset from scenario_app test for iOS and Android.
      515f3398
  4. 07 8月, 2020 1 次提交
  5. 30 7月, 2020 1 次提交
  6. 25 7月, 2020 1 次提交
    • S
      Manual merge of Dart a3815b6590...24c7666def (#19967) · 3bb6cc26
      Siva 提交于
      * Manual merge or Dart into flutter a3815b6590...24c7666def
      
      dart-lang/sdk@24c7666def Update tests that have the current version number hardcoded
      dart-lang/sdk@f88ce7aef5 Increase Dart version to 2.10
      
      * Update language version.
      
      * Update license.
      
      * Hpdate language version.
      
      * Update license.
      3bb6cc26
  7. 18 6月, 2020 1 次提交
  8. 13 6月, 2020 1 次提交
  9. 15 5月, 2020 1 次提交
  10. 26 3月, 2020 1 次提交
  11. 04 3月, 2020 1 次提交
  12. 03 3月, 2020 1 次提交
  13. 21 2月, 2020 2 次提交
  14. 17 1月, 2020 1 次提交
  15. 20 12月, 2019 2 次提交
  16. 19 12月, 2019 2 次提交
  17. 05 12月, 2019 1 次提交
    • D
      Wire up Opacity on Fuchsia, round 2 (#14024) · d117ac97
      David Worsham 提交于
      * Remove erroneous ChildView opacity
      
      * Wire frame metrics through contexts
      
      * Maintain layer stack inside of SceneBuilder
      
      * Remove EnsureSingleChild
      
      * Centralize system-composite and elevation logic
      
      * Wire up OpacityLayer to Scenic
      d117ac97
  18. 20 11月, 2019 1 次提交
    • J
      Imagefilter wrapper object (#13711) · ffcd8564
      Jim Graham 提交于
      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).
      ffcd8564
  19. 28 9月, 2019 1 次提交
  20. 26 9月, 2019 1 次提交
    • D
      [fuchsia] Wire up OpacityLayer to Scenic (#11322) · fcc4ab32
      David Worsham 提交于
      On Fuchsia, add a build flag for compositing OpacityLayers using the system
      compositor vs Skia, which exposes a fastpath for opacity via Scenic.
      This will only work under certain circumstances, in particular nested
      OpacityLayers will not render correctly!
      
      On Fuchsia, add a build flag for compositing PhysicalShapeLayers using
      the system compositor vs Skia. Set to off by default, which restores
      performant shadows on Fuchsia.
      
      Remove the opacity exposed from ChildView, as that was added mistakenly.
      
      Finally, we centralize the logic for switching between the
      system-composited and in-process-composited paths inside of
      ContainerLayer. We also centralize the logic for computing elevation
      there. This allows the removal of many OS_FUCHSIA-specific code-paths.
      
      Test: Ran workstation on Fuchsia; benchmarked before and after
      Bug: 23711
      Bug: 24163
      
      * Fix broken tests
      fcc4ab32
  21. 12 7月, 2019 1 次提交
  22. 11 7月, 2019 1 次提交
  23. 29 6月, 2019 1 次提交
    • Y
      Adds API for retaining intermediate engine layers (#9461) · 94bb7a7f
      Yegor 提交于
      Add new optional named oldLayer arguments to all push* methods of the SceneBuilder class.
      
      When not null oldLayer signals to the engine that the intent is to update a layer rendered in a previous frame. The engine may optionally use that signal to reuse the resources allocated for that layer in the previous frame. For example, on the Web we can reuse existing DOM nodes and some of their properties and move fewer nodes around the tree.
      
      The return type of each push method has been tightened up. Instead of having all methods return the same EngineLayer type, each method has its own unique layer type, e.g. OffsetEngineLayer. oldLayer parameters match the returned type. This prevents the framework (and other developers using dart:ui directly) from accidentally supplying an engine layer of the wrong type.
      94bb7a7f
  24. 14 6月, 2019 1 次提交
  25. 21 5月, 2019 1 次提交
  26. 08 5月, 2019 1 次提交
    • D
      new lints (#8849) · 2b1f9925
      Dan Field 提交于
      Dart lints added:
      * Avoid optional new
      * Avoid optional const
      * Prefer single quotes
      * Prefer default assignment `=`
      2b1f9925
  27. 27 4月, 2019 1 次提交
  28. 24 4月, 2019 1 次提交
  29. 23 4月, 2019 2 次提交
  30. 12 4月, 2019 1 次提交
  31. 11 4月, 2019 1 次提交
  32. 07 4月, 2019 1 次提交
  33. 15 3月, 2019 1 次提交
  34. 01 3月, 2019 1 次提交
  35. 11 1月, 2019 1 次提交