)]}'
{
  "commit": "94ebfb0b0d864479db28b764274162773f93bb96",
  "tree": "a4efe55355ad68eed1494601ca0939e647378c40",
  "parents": [
    "aa09cecc1976d8b5223c7fa07d9409767875d31f"
  ],
  "author": {
    "name": "Alexander Cooper",
    "email": "alcooper@chromium.org",
    "time": "Thu May 28 17:17:19 2026"
  },
  "committer": {
    "name": "webrtc-scoped@luci-project-accounts.iam.gserviceaccount.com",
    "email": "webrtc-scoped@luci-project-accounts.iam.gserviceaccount.com",
    "time": "Fri May 29 20:24:42 2026"
  },
  "message": "Fix race condition in CroppingWindowCapturer\n\nhttps://webrtc-review.googlesource.com/c/src/+/467820 fixed an issue\nwhere the captured window may have moved during capture, and thus the\nframe would have the window at it\u0027s original location (e.g. when\nCaptureFrame was called), but we cropped to it\u0027s new location (e.g. when\nOnCaptureResult was called), thus potential leaking pixels. This\naddresses the inverse of that. If we actually capture closer to when\n`OnCaptureResult` is called and the window has moved, we could now be\ncapturing the old location where the window no longer is and is thus\nleaking pixels. Since we cannot assert whether capture happened closer\nto `CaptureFrame` or `OnCaptureResult`, we simply attempt to recapture\nthe frame if the window position has moved between these two calls.\n\nFixed: chromium:517207235\nChange-Id: I98f41c709b0bcf0285e258e7421af3481692a1ba\nReviewed-on: https://webrtc-review.googlesource.com/c/src/+/476400\nReviewed-by: Mark Foltz \u003cmfoltz@chromium.org\u003e\nAuto-Submit: Alexander Cooper \u003calcooper@chromium.org\u003e\nCommit-Queue: Alexander Cooper \u003calcooper@chromium.org\u003e\nCr-Commit-Position: refs/heads/main@{#47851}\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "3479044d22a7f41a91bd34fa6de25fbb8a6636bb",
      "old_mode": 33188,
      "old_path": "modules/desktop_capture/cropping_window_capturer.cc",
      "new_id": "1fb192845387cb21cda5fb56553159b451cceb7f",
      "new_mode": 33188,
      "new_path": "modules/desktop_capture/cropping_window_capturer.cc"
    }
  ]
}
