Introduction
Introduction Statistics Contact Development Disclaimer Help
tAdd support for WebGL - surf - customized build of surf, the suckless webkit b…
git clone git://src.adamsgaard.dk/surf
Log
Files
Refs
README
LICENSE
---
commit 7817d0ec83b16dad6ad4f68039a58c371dbca38e
parent 723ff26c3618cf4db1ae34688509cbcdfed1412f
Author: Eon S. Jeon <[email protected]>
Date: Sat, 30 Sep 2017 00:34:35 +0900
Add support for WebGL
Allows enabling and disabling WebGL support built into WebKit.
The feature is turned off by default.
Diffstat:
M config.def.h | 1 +
M surf.c | 5 +++++
2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/config.def.h b/config.def.h
t@@ -46,6 +46,7 @@ static Parameter defconfig[ParameterLast] = {
[SpellLanguages] = { { .v = ((char *[]){ "en_US", NULL }) }…
[StrictTLS] = { { .i = 1 }, },
[Style] = { { .i = 1 }, },
+ [WebGL] = { { .i = 0 }, },
[ZoomLevel] = { { .f = 1.0 }, },
};
diff --git a/surf.c b/surf.c
t@@ -79,6 +79,7 @@ typedef enum {
SpellLanguages,
StrictTLS,
Style,
+ WebGL,
ZoomLevel,
ParameterLast
} ParamName;
t@@ -820,6 +821,9 @@ setparameter(Client *c, int refresh, ParamName p, const Ar…
setstyle(c, getstyle(geturi(c)));
refresh = 0;
break;
+ case WebGL:
+ webkit_settings_set_enable_webgl(s, a->i);
+ break;
case ZoomLevel:
webkit_web_view_set_zoom_level(c->view, a->f);
return; /* do not update */
t@@ -1079,6 +1083,7 @@ newview(Client *c, WebKitWebView *rv)
"enable-accelerated-2d-canvas", curconfig[AcceleratedCanvas…
"enable-site-specific-quirks", curconfig[SiteQuirks].val.i,
"enable-smooth-scrolling", curconfig[SmoothScrolling].val.i,
+ "enable-webgl", curconfig[WebGL].val.i,
"media-playback-requires-user-gesture", curconfig[MediaManu…
NULL);
/* For more interesting settings, have a look at
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.