)]}'
{
  "commit": "cff88a8dff03391883fbc824d1bed78dc6dc345f",
  "tree": "d35a3dbdcd89029a81775d2000ed22846de93d0a",
  "parents": [
    "aa52436e84e32463eedca07134c543c9041c21e2"
  ],
  "author": {
    "name": "Chris Bracken",
    "email": "chris@bracken.jp",
    "time": "Tue Nov 24 22:07:10 2026 +0000"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Tue Nov 24 22:07:10 2026 +0000"
  },
  "message": "iOS: Check the presented composition order in platform view tests (#197302)\n\nIn a followup patch, we\u0027ll move\n`FlutterPlatformViewsController.compositionOrder`, which is state\nmanaged by the raster thread, from `FlutterPlatformViewsController` to\n`IOSExternalViewEmbedder`.\n`FlutterPlatformViewsController.embeddedViewCount` is a derived property\nthat\u0027s equivalent to `compositionOrder.size()`. Since this state is\nmoving out of `FlutterPlatformViewsController`, this patch updates tests\nthat relied on it to use equivalent state managed on the platform\nthread.\n\nThis patch updates the tests to use `previousCompositionOrder`, which is\nthe composition order of the last frame presented on the platform\nthread. Unlike `compositionOrder`, it\u0027s only accessed from the platform\nthread and will remain on `FlutterPlatformViewsController`.\n\nWhen a frame is presented, `previousCompositionOrder` contains the same\nview IDs, in the same order, as the `compositionOrder` the raster thread\nsubmitted. `submitFrame:withIosContext:` creates a layer for each view\nin `compositionOrder`, and `presentFrame:` copies the view IDs of those\nlayers into `previousCompositionOrder`. (That\u0027s always been the case)\n\nIt\u0027s safe to use `previousCompositionOrder` so long as we check the\nvalue on frame submit, when they are updated to match. The only cases\nwhere the two might differ are:\n* Before a frame is submitted, `previousCompositionOrder` is the order\nfrom the previous frame.\n* When the current and previous frame did not have platform views.\n\nNow that `embeddedViewCount` is unused, we delete it.\n\nIssue: https://github.com/flutter/flutter/issues/112232\n\n\u003c!--\nThanks for filing a pull request!\nReviewers are typically assigned within a week of filing a request.\nTo learn more about code review, see our documentation on Tree Hygiene:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md\n--\u003e\n\n## Pre-launch Checklist\n\n- [X] I read the [Contributor Guide] and followed the process outlined\nthere for submitting PRs.\n- [X] I read the [AI contribution guidelines] and understand my\nresponsibilities, or I am not using AI tools.\n- [X] I read the [Tree Hygiene] wiki page, which explains my\nresponsibilities.\n- [X] I read and followed the [Flutter Style Guide], including [Features\nwe expect every widget to implement].\n- [X] I signed the [CLA].\n- [X] I listed at least one issue that this PR fixes in the description\nabove.\n- [X] I updated/added relevant in-code documentation (doc comments with\n`///`).\n- [X] If this PR introduces a new feature or capability, I created and\nlinked a website documentation issue or PR in [flutter/website] (or\nverified none is needed).\n- [X] I added new tests to check the change I am making, or this PR is\n[test-exempt].\n- [X] I followed the [breaking change policy] and added [Data Driven\nFixes] where supported.\n- [X] All existing and new tests are passing.\n\nIf you need help, consider asking for advice on the #hackers-new channel\non [Discord].\n\nIf this change needs to override an active code freeze, provide a\ncomment explaining why. The code freeze workflow can be overridden by\ncode reviewers. See pinned issues for any active code freezes with\nguidance.\n\n**Note**: The Flutter team is currently trialing the use of [Gemini Code\nAssist for\nGitHub](https://developers.google.com/gemini-code-assist/docs/review-github-code).\nComments from the `gemini-code-assist` bot should not be taken as\nauthoritative feedback from the Flutter team. If you find its comments\nuseful you can update your code accordingly, but if you are unsure or\ndisagree with the feedback, please feel free to wait for a Flutter team\nmember\u0027s review for guidance on which automated comments should be\naddressed.\n\n\u003c!-- Links --\u003e\n[Contributor Guide]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#overview\n[AI contribution guidelines]:\nhttps://github.com/flutter/flutter/blob/main/CONTRIBUTING.ai.md\n[Tree Hygiene]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md\n[test-exempt]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#tests\n[Flutter Style Guide]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md\n[Features we expect every widget to implement]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md#features-we-expect-every-widget-to-implement\n[CLA]: https://cla.developers.google.com/\n[flutter/tests]: https://github.com/flutter/tests\n[flutter/website]: https://github.com/flutter/website\n[breaking change policy]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#handling-breaking-changes\n[Discord]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Chat.md\n[Data Driven Fixes]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Data-driven-Fixes.md",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "ae4b49972ea5a8be5c7ead5ba373e290abd81321",
      "old_mode": 33188,
      "old_path": "engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterPlatformViewsController.h",
      "new_id": "b2ec19db9bbaf652dcedf3018aedf3e18b115d2d",
      "new_mode": 33188,
      "new_path": "engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterPlatformViewsController.h"
    },
    {
      "type": "modify",
      "old_id": "e8520664695af1f837635793779a7d1a1842084a",
      "old_mode": 33188,
      "old_path": "engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterPlatformViewsController.mm",
      "new_id": "5a923b2074aa8622812579bb9d29141c289248a2",
      "new_mode": 33188,
      "new_path": "engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterPlatformViewsController.mm"
    },
    {
      "type": "modify",
      "old_id": "60024f19eaee959d55f58b64ecb24773c7e87658",
      "old_mode": 33188,
      "old_path": "engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterPlatformViewsTest.mm",
      "new_id": "2345f9d8e84d54f666f4b630720fdc3fc7374522",
      "new_mode": 33188,
      "new_path": "engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterPlatformViewsTest.mm"
    }
  ]
}
