)]}'
{
  "commit": "a131c0871c679b61f4ad7b8ea89913814ff11907",
  "tree": "0a7a58bfdd31225771044e450a9ab54f53dafd2b",
  "parents": [
    "1d3f4dc072cf7a3db9c5050d5e56524f81de4297"
  ],
  "author": {
    "name": "Lukasz Anforowicz",
    "email": "lukasza@google.com",
    "time": "Fri Sep 12 17:25:31 2025 -0700"
  },
  "committer": {
    "name": "Pdfium LUCI CQ",
    "email": "pdfium-scoped@luci-project-accounts.iam.gserviceaccount.com",
    "time": "Fri Sep 12 17:25:31 2025 -0700"
  },
  "message": "[rust png] Introduce `libpng`-agnostic `enum class EncodingColorType`.\n\nThis CL refactors the type of the `color_type` parameter of the\n`fxcodec::PngDecoder::Delegate::PngReadHeader` method so that the API is\nmore `libpng`-agnostic (meaning that implementing the interface in\n`ProgressiveDecoder` doesn\u0027t require reaching for `PNG_COLOR_TYPE_...`\nconstants from `png.h`, nor hardcoding values of those constants such\nas `2` or `6`).\n\nTo simplify further refactorings, this CL also identifies some\nunreachable `switch` `case`s and then collapses them into a single\n`NOTREACHED` `case` with a comment.  This is possible, because there is\ncurrently only one implementation of the `PngDecoder::Delegate`\ninterface, and this implementation only ever asks to decode into\n`Truecolor` or `TruecolorWithAlpha` format.  The unreachable cases are\nfurther refactored away in a follow-up CL here:\nhttps://pdfium-review.googlesource.com/c/pdfium/+/135615\n\nBug: 444045690\nChange-Id: I588b47d0d01b11eb528b56d3394eb2c962cfc618\nReviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/135670\nReviewed-by: Lei Zhang \u003cthestig@chromium.org\u003e\nCommit-Queue: Łukasz Anforowicz \u003clukasza@google.com\u003e\nCommit-Queue: Lei Zhang \u003cthestig@chromium.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "ccd9e39bb69c7b1909bc81967c43225e80d94dc2",
      "old_mode": 33188,
      "old_path": "core/fxcodec/png/png_decoder.cpp",
      "new_id": "9403dc96697a5f3027fab021488092725517f545",
      "new_mode": 33188,
      "new_path": "core/fxcodec/png/png_decoder.cpp"
    },
    {
      "type": "modify",
      "old_id": "c35699460419aa3577648c95968986267d4b2080",
      "old_mode": 33188,
      "old_path": "core/fxcodec/png/png_decoder.h",
      "new_id": "1957f5feb549801043dd1a485887088a4954b4b6",
      "new_mode": 33188,
      "new_path": "core/fxcodec/png/png_decoder.h"
    },
    {
      "type": "modify",
      "old_id": "6e8098cf8362d2f1866fc82bf674aac3adb75832",
      "old_mode": 33188,
      "old_path": "core/fxcodec/progressive_decoder.cpp",
      "new_id": "7285f673b3d5cbb396dc4b3386ebc4f3e1350696",
      "new_mode": 33188,
      "new_path": "core/fxcodec/progressive_decoder.cpp"
    },
    {
      "type": "modify",
      "old_id": "8a5c991b50509ea67cc00fa9b9600394e01e40b2",
      "old_mode": 33188,
      "old_path": "core/fxcodec/progressive_decoder.h",
      "new_id": "3c7ab8e7f15a8b30b0a7bb6bb1b6b113c6d34934",
      "new_mode": 33188,
      "new_path": "core/fxcodec/progressive_decoder.h"
    }
  ]
}
