Alex313031 / thorium-libjxl

libjxl for Chromium - restores JPEG-XL functionality to Thorium/Chromium post M109

Home Page:https://github.com/Alex313031/thorium-libjxl

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Thorium libJXL

      

  • libjxl for Thorium Browser: Restores JPEG-XL functionality to Thorium/Chromium versions post M109.

  • This repo is added as a submodule to the main Thorium repo, and setup.sh therein copies this repos //src/ dir over the Chromium tree, and then Thorium's //src/ dir.

> @mo271's patch which this is based on: https://chromium-review.googlesource.com/c/chromium/src/+/4255409
> @gz83's patch which restores jxl devtools functionality: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4257582
> Also related, and needed for building is libhighway

– Both libjxl and libhighway versions are bumped to ~ Jun. 2023 revisions.
– For info on versions of these and other things, see the VERSION.md file
– Note that PGO might be slightly less effective unless you generate your own .profdata file from a debug build of Thorium/Chromium.

NOTE: the //external/ dir contains two files. These are modified by Thorium and so are excluded from the //src/ directory. If you want to integrate libjxl back into a vanilla Chromium build, see below.

Building

Thorium Build

Chromium Build

  1. Checkout the Chromium version specified in the VERSION.md file.
# In chromium/src dir #

git checkout -f tags/blahblah # replacing blahblah with the actual tag, i.e. 114.0.5735.134
git clean -ffd # cleans stale or removed dirs
gclient sync --with_branch_heads --with_tags -f -R -D # dont just use 'gclient sync'
  1. Run the ./setup.sh script from within the repo. It assumes the Chromium repo is in $HOME, but can be overridden with the CR_DIR env variable.
  2. Build as normal

NOTE: You could also use the .patch files with "git am" or "git apply --reject".

About

libjxl for Chromium - restores JPEG-XL functionality to Thorium/Chromium post M109

https://github.com/Alex313031/thorium-libjxl

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:C++ 44.0%Language:TypeScript 38.1%Language:Python 13.4%Language:HTML 4.4%Language:Shell 0.1%