RESOLVED FIXED Bug 133378
[GTK] Bump cairo version to support HiDPI
https://bugs.webkit.org/show_bug.cgi?id=133378
Summary [GTK] Bump cairo version to support HiDPI
Carlos Garcia Campos
Reported 2014-05-29 08:05:17 PDT
I know we can't do it ATM, but this bug will also work as reminder to remove all the ifdefs we currently have, and that we will be able to remove once we bump the cairo requirements.
Attachments
Patch (12.50 KB, patch)
2020-09-21 15:10 PDT, Adrian Perez
no flags
Sergio Villar Senin
Comment 1 2014-05-29 08:28:46 PDT
Do we have an specific bug in cairo to follow?
Carlos Garcia Campos
Comment 2 2014-05-29 09:02:28 PDT
Cairo already supports it, but in snapshots releases.
Martin Robinson
Comment 3 2014-09-20 22:00:18 PDT
I don't think we can raise our requirements until 4.x.
Adrian Perez
Comment 4 2020-09-02 17:12:39 PDT
I think we can close this issue as obsolete: We have had code in “Source/WebCore/platform/graphics/cairo/CairoUtilities.cpp” to set the device scale factor for Cairo surfaces for a good while, which is used conditionally if Cairo 1.13 or newer is being used. Or is there something else that needs to be done in this regard?
Carlos Garcia Campos
Comment 5 2020-09-21 01:18:05 PDT
This is about bumping cairo requirement and remove the ifdefs we currently have to support HiDPI.
Adrian Perez
Comment 6 2020-09-21 01:22:13 PDT
(In reply to Carlos Garcia Campos from comment #5) > This is about bumping cairo requirement and remove the ifdefs we currently > have to support HiDPI. Ah, I get it know. I'll check later what versions distributions are using and see whether it would possible to bump the requirement, taking https://trac.webkit.org/wiki/WebKitGTK/DependenciesPolicy into account 👍️
Adrian Perez
Comment 7 2020-09-21 14:50:43 PDT
(In reply to Adrian Perez from comment #6) > (In reply to Carlos Garcia Campos from comment #5) > > This is about bumping cairo requirement and remove the ifdefs we currently > > have to support HiDPI. > > Ah, I get it know. I'll check later what versions distributions are > using and see whether it would possible to bump the requirement, > taking https://trac.webkit.org/wiki/WebKitGTK/DependenciesPolicy > into account 👍️ - Debian Stretch, supported until August 2021, has Cairo 1.14.8: https://packages.debian.org/stretch/libcairo2 - Ubuntu LTS 18.04, supported until April 2021, has Cairo 1.15.10: https://packages.ubuntu.com/bionic/libcairo2 So yes, it looks like we can bump the minimum Cairo requirement to 1.14.x and remove the conditional compilation guards 🙌️
Adrian Perez
Comment 8 2020-09-21 15:01:45 PDT
(In reply to Adrian Perez from comment #7) > (In reply to Adrian Perez from comment #6) > > (In reply to Carlos Garcia Campos from comment #5) > > > This is about bumping cairo requirement and remove the ifdefs we currently > > > have to support HiDPI. > > > > Ah, I get it know. I'll check later what versions distributions are > > using and see whether it would possible to bump the requirement, > > taking https://trac.webkit.org/wiki/WebKitGTK/DependenciesPolicy > > into account 👍️ > > - Debian Stretch, supported until August 2021, has Cairo 1.14.8: > https://packages.debian.org/stretch/libcairo2 > - Ubuntu LTS 18.04, supported until April 2021, has Cairo 1.15.10: > https://packages.ubuntu.com/bionic/libcairo2 > > So yes, it looks like we can bump the minimum Cairo requirement to 1.14.x > and remove the conditional compilation guards 🙌️ Funny story: in “Source/cmake/Options{GTK,WPE}.cmake” we are already listing 1.14.0 as the minimum required Cairo version.
Adrian Perez
Comment 9 2020-09-21 15:10:48 PDT
EWS Watchlist
Comment 10 2020-09-21 15:11:51 PDT
Thanks for the patch. If this patch contains new public API please make sure it follows the guidelines for new WebKit2 GTK+ API. See https://trac.webkit.org/wiki/WebKitGTK/AddingNewWebKit2API
Adrian Perez
Comment 11 2020-09-21 15:14:00 PDT
CC'ing Don Olmstead as well… is this okay for the PlayStation port? In “OptionsPlayStation.cmake” there is no minimum version being requested for Cairo, should I add 1.14.0 there as well?
EWS
Comment 12 2020-09-21 23:08:23 PDT
Committed r267398: <https://trac.webkit.org/changeset/267398> All reviewed patches have been landed. Closing bug and clearing flags on attachment 409326 [details].
Note You need to log in before you can comment on or make changes to this bug.