[hackers] [surf/surf-webkit2] Remove accelerated canvas parameter || Quentin Rameau

From: <git_AT_suckless.org>
Date: Sat, 8 May 2021 16:46:47 +0200 (CEST)

commit 4540b4a97cb8cbabf7d4f64b625836b84718e230
Author: Quentin Rameau <quinq_AT_fifth.space>
AuthorDate: Fri Apr 30 08:48:19 2021 +0200
Commit: Quentin Rameau <quinq_AT_fifth.space>
CommitDate: Fri Apr 30 08:48:19 2021 +0200

    Remove accelerated canvas parameter
    
    This has been deprecated since release 2.32.

diff --git a/config.def.h b/config.def.h
index 96e1009..ef44721 100644
--- a/config.def.h
+++ b/config.def.h
_AT_@ -15,7 +15,6 @@ static char *cookiefile = "~/.surf/cookies.txt";
  */
 static Parameter defconfig[ParameterLast] = {
         /* parameter Arg value priority */
- [AcceleratedCanvas] = { { .i = 1 }, },
         [AccessMicrophone] = { { .i = 0 }, },
         [AccessWebcam] = { { .i = 0 }, },
         [Certificate] = { { .i = 0 }, },
diff --git a/surf.c b/surf.c
index 5d7b2c4..af0fa74 100644
--- a/surf.c
+++ b/surf.c
_AT_@ -51,7 +51,6 @@ enum {
 };
 
 typedef enum {
- AcceleratedCanvas,
         AccessMicrophone,
         AccessWebcam,
         CaretBrowsing,
_AT_@ -272,7 +271,6 @@ static ParamName loadtransient[] = {
 };
 
 static ParamName loadcommitted[] = {
- AcceleratedCanvas,
 // AccessMicrophone,
 // AccessWebcam,
         CaretBrowsing,
_AT_@ -754,9 +752,6 @@ setparameter(Client *c, int refresh, ParamName p, const Arg *a)
         modparams[p] = curconfig[p].prio;
 
         switch (p) {
- case AcceleratedCanvas:
- webkit_settings_set_enable_accelerated_2d_canvas(s, a->i);
- break;
         case AccessMicrophone:
                 return; /* do nothing */
         case AccessWebcam:
_AT_@ -1123,7 +1118,6 @@ newview(Client *c, WebKitWebView *rv)
                    "enable-html5-local-storage", curconfig[DiskCache].val.i,
                    "enable-java", curconfig[Java].val.i,
                    "enable-javascript", curconfig[JavaScript].val.i,
- "enable-accelerated-2d-canvas", curconfig[AcceleratedCanvas].val.i,
                    "enable-site-specific-quirks", curconfig[SiteQuirks].val.i,
                    "enable-smooth-scrolling", curconfig[SmoothScrolling].val.i,
                    "enable-webgl", curconfig[WebGL].val.i,
Received on Sat May 08 2021 - 16:46:47 CEST

This archive was generated by hypermail 2.3.0 : Sat May 08 2021 - 16:48:37 CEST