1. 21 8月, 2019 3 次提交
  2. 20 8月, 2019 5 次提交
  3. 17 8月, 2019 3 次提交
  4. 16 8月, 2019 6 次提交
  5. 15 8月, 2019 5 次提交
  6. 14 8月, 2019 1 次提交
    • C
      Allow embedder controlled composition of Flutter layers. (#10195) · e8f95440
      Chinmay Garde 提交于
      This patch allows embedders to split the Flutter layer tree into multiple
      chunks. These chunks are meant to be composed one on top of another. This gives
      embedders a chance to interleave their own contents between these chunks.
      
      The Flutter embedder API already provides hooks for the specification of
      textures for the Flutter engine to compose within its own hierarchy (for camera
      feeds, video, etc..). However, not all embedders can render the contents of such
      sources into textures the Flutter engine can accept. Moreover, this composition
      model may have overheads that are non-trivial for certain use cases. In such
      cases, the embedder may choose to specify multiple render target for Flutter to
      render into instead of just one.
      
      The use of this API allows embedders to perform composition very similar to the
      iOS embedder. This composition model is used on that platform for the embedding
      of UIKit view such and web view and map views within the Flutter hierarchy.
      However, do note that iOS also has threading configurations that are currently
      not available to custom embedders.
      
      The embedder API updates in this patch are ABI stable and existing embedders
      will continue to work are normal. For embedders that want to enable this
      composition mode, the API is designed to make it easy to opt into the same in an
      incremental manner.
      
      Rendering of contents into the “root” rendering surface remains unchanged.
      However, now the application can push “platform views” via a scene builder.
      These platform views need to handled by a FlutterCompositor specified in a new
      field at the end of the FlutterProjectArgs struct.
      
      When a new platform view in introduced within the layer tree, the compositor
      will ask the embedder to create a new render target for that platform view.
      Render targets can currently be OpenGL framebuffers, OpenGL textures or software
      buffers. The type of the render target returned by the embedder must be
      compatible with the root render surface. That is, if the root render surface is
      an OpenGL framebuffer, the render target for each platform view must either be a
      texture or a framebuffer in the same OpenGL context. New render target types as
      well as root renderers for newer APIs like Metal & Vulkan can and will be added
      in the future. The addition of these APIs will be done in an ABI & API stable
      manner.
      
      As Flutter renders frames, it gives the embedder a callback with information
      about the position of the various platform views in the effective hierarchy.
      The embedder is then meant to put the contents of the render targets that it
      setup and had previously given to the engine onto the screen (of course
      interleaving the contents of the platform views).
      
      Unit-tests have been added that test not only the structure and properties of
      layer hierarchy given to the compositor, but also the contents of the texels
      rendered by a test compositor using both the OpenGL and software rendering
      backends.
      
      Fixes b/132812775
      Fixes flutter/flutter#35410
      e8f95440
  7. 13 8月, 2019 9 次提交
    • D
      Expose isolateId for engine (#10823) · e2289396
      Dan Field 提交于
      e2289396
    • J
    • M
      Change SemanticsNode#children lists to be non-null (#10952) · ed88d0a4
      Michael Klimushyn 提交于
      Prevents NPEs and simplifies the code needed to handle these collections. There doesn't seem to have been a meaningful difference between null and empty collection here. The specific crash was happening when `object.scrollChildren > 0` while `object.childrenInHitTestOrder == null`, which looks like it may be a bug on its own and probably needs further investigation.
      ed88d0a4
    • K
      Fix format (#10955) · a438469a
      Kaushik Iska 提交于
      a438469a
    • K
      Fix iOS references to PostPrerollResult (#10949) · b5c198b6
      Kaushik Iska 提交于
      b5c198b6
    • K
      Allow for dynamic thread merging on IOS for embedded view mutations (#9819) · 971a6391
      Kaushik Iska 提交于
      After pre-roll we know if there have been any mutations made to the IOS embedded UIViews. If there are any mutations and the thread configuration is such chat the mutations will be committed on an illegal thread (GPU thread), we merge the threads and keep them merged until the lease expires. The lease is currently set to expire after 10 frames of no mutations. If there are any mutations in the interim we extend the lease.
      
      TaskRunnerMerger will ultimately be responsible for enforcing the correct thread configurations.
      
      This configuration will be inactive even after this change since still use the same thread when we create the iOS engine. That is slated to change in the coming PRs.
      971a6391
    • M
      Report JUnit test failures (#10941) · c92a0d99
      Michael Klimushyn 提交于
      Previously this script was not reporting any JUNit failures and somehow
      ended up included a non-existent jar for Java tests to test against.
      
      It looks like one of the JUnit tests is now failing. Disabling it for
      now to turn on CI again as soon as possible, will fix and enable it in a
      follow up.
      c92a0d99
    • Q
      Fix iOS keyboard crash (#10656) · e95125aa
      Qxyat 提交于
      Fixes an iOS crash on physical devices in `-[__NSCFString substringWithRange:]`: range out of bounds. According to Apple's docs for `UITextInput` method `positionFromPosition:(UITextPosition*)position offset:(NSInteger)offset`, this method should return:
      
      A custom UITextPosition object that represents the location in a document that is at the specified offset from position. Return nil if the computed text position is less than 0 or greater than the length of the backing string.
      e95125aa
    • J
      a50ec07d
  8. 10 8月, 2019 3 次提交
  9. 09 8月, 2019 5 次提交