Bug 133378 - [GTK] Bump cairo version to support HiDPI
Summary: [GTK] Bump cairo version to support HiDPI
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Adrian Perez
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-29 08:05 PDT by Carlos Garcia Campos
Modified: 2020-09-21 23:08 PDT (History)
11 users (show)

See Also:


Attachments
Patch (12.50 KB, patch)
2020-09-21 15:10 PDT, Adrian Perez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Carlos Garcia Campos 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.
Comment 1 Sergio Villar Senin 2014-05-29 08:28:46 PDT
Do we have an specific bug in cairo to follow?
Comment 2 Carlos Garcia Campos 2014-05-29 09:02:28 PDT
Cairo already supports it, but in snapshots releases.
Comment 3 Martin Robinson 2014-09-20 22:00:18 PDT
I don't think we can raise our requirements until 4.x.
Comment 4 Adrian Perez 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?
Comment 5 Carlos Garcia Campos 2020-09-21 01:18:05 PDT
This is about bumping cairo requirement and remove the ifdefs we currently have to support HiDPI.
Comment 6 Adrian Perez 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 👍️
Comment 7 Adrian Perez 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 🙌️
Comment 8 Adrian Perez 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.
Comment 9 Adrian Perez 2020-09-21 15:10:48 PDT
Created attachment 409326 [details]
Patch
Comment 10 EWS Watchlist 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
Comment 11 Adrian Perez 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?
Comment 12 EWS 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].