1. 26 3月, 2019 2 次提交
    • A
      Delegate a11y events and action to/from embedded Android platform views. (#8250) · 345ae7d3
      Amir Hardon 提交于
      Delegate a11y events and action to/from embedded Android platfrom views.
      
      This handles delegation of:
        * AccessibilityNodeProvider#performAction
        * ViewGroup#requestSendAccessibilityEvent
        * View#onHoverEvent
      
      Additionally updates the currently input accessibility focused node state that is
      tracked by the a11y bridge when an embedded view's node is focused.
      345ae7d3
    • C
      Make it easy to write embedder unit tests by creating a fixture and config builder. (#8276) · d6ead18f
      Chinmay Garde 提交于
      All embedder unit-tests have to setup the Flutter project arguments from scratch
      before launching the engine. The boilerplate and having to deal with the low
      level C API during each engine launch is a hinderance to writing tests.
      
      This patch introduces an EmbedderTest fixture that sets up all the embedder side snapshots before allowing the unit test to create a FlutterConfigBuilder` that
      the test can use to incrementally build and edit the Flutter project
      configuration. From the given state state of a configuration, multiple engines
      can be launched with their lifecylces managed by appropriate RAII wrappers.
      
      This allows the a fully configured Flutter engine to be launched using 4 lines
      of code in a fixture.
      
      ```
      EmbedderConfigBuilder builder;
      builder.SetSoftwareRendererConfig();
      builder.SetAssetsPathFromFixture(this);
      builder.SetSnapshotsFromFixture(this);
      auto engine = builder.LaunchEngine();
      ```
      d6ead18f
  2. 22 3月, 2019 3 次提交
    • J
      Do not drop the DartExecutor's message handler when a FlutterNativeView is... · 68bd4f2c
      Jason Simmons 提交于
      Do not drop the DartExecutor's message handler when a FlutterNativeView is detached from the FlutterView (#8254)
      
      An activity can use ViewFactory.retainNativeFlutterView to reuse a
      FlutterNativeView across multiple instances of the activity.  In this
      scenario, the FlutterNativeView should continue to handle incoming messages
      sent from Dart.
      68bd4f2c
    • A
      Mirror Android platform views a11y tree in the Flutter a11y tree. (#8237) · 06635d38
      Amir Hardon 提交于
      This PR mirrors virtual a11y tree of embedded platform views in the Flutter
      a11y tree.
      
      Non virtual hierarchies are not currently supported.
      
      Only works on Android versions earlier than Android P as it relies on
      reflection access to hidden system APIs which cannot be done starting
      Android P.
      
      A11y is not yet working as we also need to delegate a11y events from the
      platform view to the FlutterView. This will be done in a following PR to
      keep the change size a little saner.
      06635d38
    • M
      FlutterJNI no longer asserts it is attached when dispatching platform messages... · 28433c51
      Matt Carroll 提交于
      FlutterJNI no longer asserts it is attached when dispatching platform messages and instead fizzles with a warning if not attached. Not sure what root cause of issue is, but this is necessary to avoid crashes. (#8246)
      
      28433c51
  3. 21 3月, 2019 5 次提交
  4. 20 3月, 2019 3 次提交
  5. 19 3月, 2019 4 次提交
    • D
      Export FlutterSemanticsUpdateNotification and improve docs (#8203) · bc8ebcb9
      Dan Field 提交于
      * Export FlutterSemanticsUpdateNotification and improve docs
      bc8ebcb9
    • C
    • C
      [platform_view] iOSP platformView composition optimize. (#8202) · 6980a835
      Chris Yang 提交于
      Optimize the performance of the platform view composition.
      When recomposition is required, we previously remove all the platform view related views (intercepting view, platform view) and re-add them for each frame. This is mentioned in flutter/flutter#23793.
      This PR enhanced the performance by re-arrange the existing UIViews and only add the newly created Views.
      
      As a result, it would also fix flutter/flutter#29427
      6980a835
    • A
      Merge only gpu and platform threads for platform views, fix deadlock. (#8045) · 62907227
      Amir Hardon 提交于
      The reason we didn't merge just the gpu and platform threads from the get go was a deadlock in Shell:OnPlatformViewCreated and Shell:OnPlatformViewDestroyed.
      
      The deadlock was caused by the platform thread starting a thread-hopping flow that ends ends up with the gpu thread releasing a latch that the platform thread is waiting on just after starting the cross-thread dance.
      If the platform and gpu threads are the same, that last task that is posted to the gpu thread will never get executed as the gpu/platform thread is blocked on a latch.
      
      This works around the deadlock by having a special case in the code for the scenario where the gpu and platform threads are the same.
      
      Fixes: flutter/flutter#23974
      62907227
  6. 16 3月, 2019 1 次提交
  7. 15 3月, 2019 6 次提交
  8. 14 3月, 2019 2 次提交
  9. 13 3月, 2019 1 次提交
  10. 12 3月, 2019 3 次提交
  11. 11 3月, 2019 1 次提交
  12. 10 3月, 2019 3 次提交
  13. 09 3月, 2019 6 次提交