office-gobmx/external/skia
Patrick Luby e4ab68142c tdf#163152 don't convert image's sRGB colorspace
With Skia/Raster or Skia disabled, converting the image's
colorspace to match the window's colorspace causes more than
an expected amount of color saturation so let the window's
underlying CGContext handle any necessary colorspace conversion
in CGContextDrawImage().

With Skia/Metal, this bug is caused by the CAMetalLayer being
set to the same colorspace as its matching window. So set the
CAMetalLayer's colorspace to sRGB so that, like with Skia/Raster
and Skia disabled, any colorspace conversion is handled when the
CAMetalLayer is drawn to the window.

Change-Id: Ifa2abe46d34bfcf5acd478fffd346603f869157b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173962
Tested-by: Jenkins
Reviewed-by: Patrick Luby <guibomacdev@gmail.com>
2024-09-26 15:13:45 +02:00
..
inc
source
0001-Added-missing-include-cstdio.patch
0001-AvoidCombiningExtrememelyLargeMeshes.patch.1
allow-no-es2restrictions.patch.1
clang-attributes-warning.patch.1
fix-alpha-difference-copy.patch.1
fix-ddi.patch
fix-pch.patch.1
fix-SkDebugf-link-error.patch.1
fix-warnings.patch.1
fix-windows-dwrite.patch.1
fix-without-gl.patch.1
fontconfig-get-typeface.patch.0
help-msvc-analyzer.patch
incomplete-type-SkImageGenerator.patch.1
incomplete.patch.0
Library_skia.mk
macosmetal.patch.0
make-api-visible.patch.1
Makefile
Module_skia.mk
no-trace-resources-on-exit.patch.1
README
redefinition-of-op.patch.0
share-grcontext.patch.1
sort-comparison-assumption.patch.0
swap-buffers-rect.patch.1
ubsan-missing-typeinfo.patch.1
ubsan.patch.1
UnpackedTarball_skia.mk
vk_mem_alloc.patch.1
windows-do-not-modify-logfont.patch.0
windows-force-unicode-api.patch.0
windows-libraries-system32.patch.1
windows-raster-surface-no-copies.patch.1
windows-text-gamma.patch.0
windows-typeface-directwrite.patch.0

External package containing skia.

https://skia.org/


How to update the tarball:
==========================

git clone https://skia.googlesource.com/skia.git
cd skia
git checkout chrome/mXX
id=$(git rev-parse chrome/mXX)
git clean -idx
rm -rf .git gitignore infra modules/canvaskit resources site
cd ..
tar cvJf skia-mXX-$id.tar.xz skia

(where XX refers to the branch version)

And review differences for BUILD.gn and relevant files in gn/ :
git diff chrome/mYY..chrome/mXX ./BUILD.gn ./gn


Debugging Skia:
===============

Note that Skia is always built optimized, unless you use --enable-skia=debug.


GrContext sharing:
==================

For details about the share-grcontext patch, see vcl/skia/README.